Originally we took a simple approach with the Views sorting options in farmOS, by enabling a small set of sort options in each view using Views' "exposed sort" option. We did NOT use Views' "click sort" feature that allows you to click on the heading of columns to sort by that column.
This feature request is to enable click sorting on all available columns, and remove the exposed sort options.
For consistency, I am going to adopt the following rules:
- Enable click-sorting on all columns that allow it.
- The default sort order shall be "ascending" for all, except for IDs and dates, which will default to "descending".
- The default sort column shall be "Name" (ascending) for assets and plans, and "Timestamp" (descending) for logs.
- No "Sort criteria" (exposed sort options other than click-sort) shall be included in Views, unless there is a reason to use them instead of click-sort.
Comments
Comment #2
m.stentaComment #3
m.stentaComment #5
m.stentaI've made these changes to all Views in farmOS.
One thing to note is the behavior when there are multiple Views on one page (for example, when you are viewing an Asset or Area record). In those cases, click sorting a column in one View will sort all the other Views by the same column (if they have that column). I think that's OK. It's not exactly intentional, but I can't think of a reason why it's a bad thing either. And there isn't any easy way to prevent that, I don't think, since they are all sharing the same GET parameters in the URL. Just making note of that here.