If specifying order as a string, you always need to have the ASC or DESC direction keywords... so try: :order => "name ASC, @geodist ASC"
Cheers -- Pat On 02/10/2009, at 11:22 AM, nico wrote: > > I'm trying to sort my search results by multiple criteria, for example > > :order => "name, @geodist asc" > > But this doesn't work. Maybe it is because name (which is a field or > attribute) needs to be a symbol. > > :order => :name > > and > > :order => "@geodist asc" > > works fine individually. But I need to combine those two. > > Any help? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en -~----------~----~----~----~------~----~------~--~---
