views:

39

answers:

2

Is there an easy way to sort sphinx results?

Recently posted (by dates) Highest paid (highest value)

+1  A: 

Do you mean beyond the order by clause?

select *
from mytable 
order by 1
codingguy3000
Can you do that in Sphinx?! That looks like a SQL query
Walker
+1  A: 

Sphinx has sorting-modes: http://sphinxsearch.com/docs/current.html#sorting-modes, what you need is SPH_SORT_ATTR_DESC mode & SPH_SORT_ATTR_ASC mode

tszming