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);
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1324842.patch | 582 bytes | nick_vh |
Comments
Comment #1
nick_vhComment #2
nick_vhCommitted, apachesolr_sort will be happy :)
Comment #3
pwolanin commentedseems like a reasonable addition. Thanks.
Comment #4.0
(not verified) commentedtypo