Closed (works as designed)
Project:
Views (for Drupal 7)
Version:
5.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Feb 2007 at 07:01 UTC
Updated:
11 Feb 2007 at 15:22 UTC
So we set up a table view and told it which fields to display. We also set a couple of these fields to be sortable. However, when we click any of the table headings, the table doesn't get resorted. The arrow showing which field is supposed to be sorted and its direction (ascending/descending) appear, but the entries always appear with the most recent first.
Comments
Comment #1
nlindley commentedOK... We figured out a little bit that might be useful. We had the table sorted under the "Sort criteria" section. However, doesn't it make sense to allow that to be overridden when the user clicks a different field for sorting? I realize this may be by design, but it makes more sense to me to give whatever the user clicks preference. For example, we have a listing of items users are selling. We do not want to display the created date, but we do want the most recent items to be shown first by default. However, we also want users to be able to filter and sort by any of the fields.
Comment #2
merlinofchaos commentedDue to the design of the tablesorting system in Drupal, this isn't actually possible without a lot of extra code.