Does anyone know of a way to sort search results by the number of votes? For a given tag, I'd like the story with the most votes to show up on the top of the search results page.
In libs/search.php I changed
$sortarray[$thelink['link_id']] = $thelink['link_date'];
}
asort($sortarray);
to
$sortarray[$thelink['link_id']] = $thelink['link_votes'];
}
asort($sortarray);
That almost did it. The list is reversed, though -- the story with the most votes is the last result. I tried changing "asort" to "arsort" but that didn't change anything. Any ideas?






Linear Mode




