Displaying 1 result from an estimated 1 matches for "sponsorerd".
Did you mean:
sponsored
2006 Aug 20
1
sorting with booleans
...ut it seems to have had no effect.
def false.<=>(o) o ? -1 : 0 end
def true.<=>(o) !o ? 1 : 0 end
I''m using the acts_as_ferret plugin.
below is the relevent code that i''m currently using.
sort_fields = []
sort_fields << Ferret::Search::SortField.new("sponsorerd")
sort_fields << Ferret::Search::SortField.new("ferret_date_registered",
:reverse => :true)
results = VoObject.find_by_contents(query,:first_doc=>page, :num_docs=>
20,:sort =>sort_fields)
Thanks in advance for any replies.
regards
c
--
Posted via http://www.r...