search for: ferret_created_at

Displaying 1 result from an estimated 1 matches for "ferret_created_at".

2006 Aug 30
7
AAF Sorting by date - what am I doing wrong?
...s by Date, in descending order. I''ve done quite a bit of reading through the forums here, and I''ve tried two different suggestions. This just returns results in the same order as a search without a sort: sort_fields = [] sort_fields << Ferret::Search::SortField.new("ferret_created_at",:reverse => :true) Comment.find_by_contents("test", :sort => sort_fields, :num_docs => 5) This also doesn''t affect the order: Comment.find_by_contents("test", :sort => ["ferret_created_at"], :num_docs => 5) The following, however, DOES...