Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-22136

Sorting entries in Custom Filters Live Data doesn't work as expected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 16.3.0-rc-1
    • Notifications
    • Windows 11 Pro, Edge 124, using a local instance of XWiki 16.3.0 RC1 on Oracle 19c, Tomcat 9.0.88
    • Unknown

    Description

      Steps to reproduce

      1. Create an XWiki 16.3.0 RC1 instance
      2. Login
      3. Go to Notifications Settings
      4. Under Custom Filters, click 'Add Filter' and add  to populate the Live Data with some entries having different scopes, e.g. Page Only, Page and children, User
      5. Sort the entries ascending and descending by 'Scope' column
      6. Observe the order
      7. Sort the entries ascending and descending by 'Location' column
      8. Observe the order

      Expected results

      The entries corresponding to 'Scope' column are sorted ascending/descending alphabetically as expected, i.e. in this order: Page Only, Page and children, User and vice versa.

      Actual results

      The entries are sorted alphabetically only in ascending order and remain like that when the sorting is reverted descending.

      There appears to be some sorting in the entries, but within the 'Location' column, although the sort is made from the 'Scope' column.

      The issue (sorting by 'Scope') could not be reproduced on XWiki 16.3.0 RC1 Jetty/HSQLDB.

      When sorting by 'Location' column, there are some entries that should have been placed at the top and some that should have been at the bottom, according to their alphabetical order (please see the attached screenshots).

      Attachments

        1. 1_Before_Any_Sorting.png
          90 kB
          Ilie Andriuta
        2. 2_Sorting_First(Ascending)_by_Scope.png
          91 kB
          Ilie Andriuta
        3. 3_Sorting_2nd(Descending)_by_Scope.png
          91 kB
          Ilie Andriuta
        4. 4_Sorting_Again(3rd_Time)Ascending_by_Scope.png
          91 kB
          Ilie Andriuta
        5. Location_1st_Click_Sorting_Ascending.png
          67 kB
          Ilie Andriuta
        6. Location_2nd_Click_Sorting_Descending.png
          61 kB
          Ilie Andriuta
        7. Location_Before_Any_Sorting.png
          55 kB
          Ilie Andriuta

        Issue Links

          Activity

            People

              Unassigned Unassigned
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: