Displaying 1 result from an estimated 1 matches for "voltamos".
Did you mean:
voltages
2007 Mar 31
3
Sorting issues, can anyone help me?
...ank_links.to_i
rescue
return nil
end
end
def posted_at_sort
begin
return self.posted_at.to_i
rescue
return nil
end
end
end
But when I try to sort by :rank_sort or :posted_at_sort it didn''t work,
see:
>> h,r = Post.full_text_search("voltamos", {:sort => Ferret::Search::SortField.new(:rank_sort, :reverse => false)} )[1].first.posted_at_sort
=> [1146857920]
>> h,r = Post.full_text_search("voltamos", {:sort => Ferret::Search::SortField.new(:rank_sort, :reverse => false)} )[1].last.posted_at_sort
=> [...