In a situation where you want to set the whole sort array yourself, a function like setAvailableSorts is useful.

$sorts = $query->getAvailableSorts();
uasort($sorts, 'comparefunction');
$query->setAvailableSorts($sorts);
CommentFileSizeAuthor
#1 1324842.patch582 bytesnick_vh

Comments

nick_vh’s picture

StatusFileSize
new582 bytes
nick_vh’s picture

Status: Active » Fixed

Committed, apachesolr_sort will be happy :)

pwolanin’s picture

seems like a reasonable addition. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

typo