SortHelper2 - Multiple Table / Coumn Sorting
When working with Rails for the rewrite of our site management utility I had the need to perform sorting on multiple columns of a result set. SortHelper2 is clean and works well for one table but it doesn’t support multiple tables. I present:
Please leave a comment with any bugs/issues you find.
Todo:
- Add Tests

October 10th, 2007 at 1:25 am
This is a great little thing, is there any way of getting it to sort results returned by ‘acts_as_ferret’?
October 11th, 2007 at 8:11 am
Andy,
I don’t think that ‘acts_as_ferret’ supports sorting in the sense that this plugin works with.
When using Ferret (Lucene) you are looking for relevant results. The sorting of the results is determined by parameters inside of Ferret. Unlike an active record .find() there is no :order parameter which is used here. You might check this page and read up on the different properties that can be associated with fields of an active record.
October 12th, 2007 at 7:13 am
Thanks for this.