Hi, I created a table using Views and marked some fields as sortable. But when I click on a sortable field, the default sort order is ascending. Thus, I need to click twice to sort the table in the descending order. But as most of the fields I intend to use as sortable represent some performance indicators, I'd like them to be sorted in the descending order by default (at the first click) so that the "best" nodes appear on top of the table. Moreover, as some tables may be quite long (with long SQL runtimes), having to click twice to get the needed result is going to be very annoying for the users.

How can I achieve that? Ideally, it would be great to be able to choose the default sort order for each field, but if it's a lot of work, I would be ok with changing the default order setting for the whole site.

Thank you

Comments

michael_kirk’s picture

Status: Active » Fixed

there is already an option to do this. Go to the admin interface for the view ( /edit )

In the fields section, if the field is sortable, theres a "default sort" option, you can change it to none, ascending, descending. Try it out.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.