You should be able to sort the ferret results like this: @posts = Post.find_by_contents(params[:query], :sort => ["end_date"])
This post talked a little bit more about using ferret to sort results: http://lists.rubyonrails.org/pipermail/rails/2006-June/044513.html *Note: Whenever I tried to do this ferret would only sort the first page of results. So if ferret returned 100 results and each page had 10 items only the first 10 items would be sorted by the desired field. Of course I was probably doing something wrong. Let me know how this works out for you. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

