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
    • None
    • 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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: