DisplayTag
  1. DisplayTag
  2. DISPL-39

Let users sort across multiple columns

    Details

    • Type: Improvement Improvement
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.0 RC1
    • Fix Version/s: TBD
    • Component/s: Paging/Sorting
    • Labels:
      None

      Description

      ====
      imported from sf tracker
      id 830363
      submitted by Richard Atkins - rjatkins
      http://sourceforge.net/support/tracker.php?aid=830363
      ====

       Sorting in the library should support the user sorting
      across multiple columns. A sort from one display of a
      table should be used as input for the sort on the next
      column.

      eg. From the initial table (warning: ugly ascii art follows)
      Name | Dept | Role
      =======================
      Bob | Sales | Manager
      Joe | Dev | Engineer
      Fred | Dev | Manager

      Sorting this by Name gives:
      Name | Dept | Role
      =======================
      Bob | Sales | Manager
      Fred | Dev | Manager
      Joe | Dev | Engineer

      Sorting this by Dept gives:
      Name | Dept | Role
      =======================
      Fred | Dev | Manager
      Joe | Dev | Engineer
      Bob | Sales | Manager

      Note that Fred now comes *before* Joe in the list.

      Implementing this would mean that sorting would work in
      the same way that it does in standard windows list
      views, so would work the way many users would expect.

        Activity

        Hide
        Vaibhav Ghadi added a comment -
        Secondary & Tertiary sorting feature will add a great value to display tag library.
        Show
        Vaibhav Ghadi added a comment - Secondary & Tertiary sorting feature will add a great value to display tag library.
        Hide
        Joachim Martin added a comment -
        This would be a great feature. Something like multisort="country, state, city", would sort all three columns.

        Of course a developer can add this with an external sort, but this makes it harder to be used by designer types.
        Show
        Joachim Martin added a comment - This would be a great feature. Something like multisort="country, state, city", would sort all three columns. Of course a developer can add this with an external sort, but this makes it harder to be used by designer types.
        Hide
        Harmin Rueda added a comment -
        The only inconvenient that I see is that you would not be able to change the multisort dinamically
        Show
        Harmin Rueda added a comment - The only inconvenient that I see is that you would not be able to change the multisort dinamically
        Hide
        ruth shacter added a comment -
        Are there any plans to add secondary sorting to the displaytag library?
        Show
        ruth shacter added a comment - Are there any plans to add secondary sorting to the displaytag library?
        Hide
        Dhiraj added a comment -
        Workaround for secondary sorting with display tag:

        If the list of objects is sorted from the backend, that sorting is retained while sorting on other columns.

        Limitation of this workaround is that the secondary sort column is fixed.

        Show
        Dhiraj added a comment - Workaround for secondary sorting with display tag: If the list of objects is sorted from the backend, that sorting is retained while sorting on other columns. Limitation of this workaround is that the secondary sort column is fixed.

          People

          • Reporter:
            fabrizio giustina
          • Votes:
            12 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated: