Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-68508

Sort by should support an array of values

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.9
    • 3.9
    • General
    • MOODLE_39_STABLE
    • MOODLE_39_STABLE
    • MDL-68508-master
    • Hide
      1. Create an S- or M-sized course (to generate users with similar names)
      2. Open course page => Participants
      3. Take note on how the users are sorted by Surname in ascending order default
      4. Try applying various combinations of sort orders. Take note of the columns which you applied sorting on.
      5. Confirm that each sort order has the correct effect (i.e. ascending and descending)
      6. Confirm that the users are sorted based on the latest sort column you applied sorting on down to the last applied column sorting. For example:
        1. You sorted the users by email into descending order, then you should see the users sorted by email in descending order.
        2. Then you sorted the users by the first name in ascending order, then you should see the users primarily sorted by their first name in ascending order. Then users with the same first name will be sorted based on their emails in descending order.
      7. Reset the table preferences.
      8. Confirm that the users are sorted by the default sort.
      9. Confirm that the "Reset table preferences" link disappears.
      Show
      Create an S- or M-sized course (to generate users with similar names) Open course page => Participants Take note on how the users are sorted by Surname in ascending order default Try applying various combinations of sort orders. Take note of the columns which you applied sorting on. Confirm that each sort order has the correct effect (i.e. ascending and descending) Confirm that the users are sorted based on the latest sort column you applied sorting on down to the last applied column sorting. For example: You sorted the users by email into descending order, then you should see the users sorted by email in descending order. Then you sorted the users by the first name in ascending order, then you should see the users primarily sorted by their first name in ascending order. Then users with the same first name will be sorted based on their emails in descending order. Reset the table preferences. Confirm that the users are sorted by the default sort. Confirm that the " Reset table preferences " link disappears.

    Description

      The existing tablelib supports sorting by multiple columns - i.e. sort by column a, then column d.

      We therefore need to move the sorting to use an array of possible sort values rather than replace the current array with a single value.

      Attachments

        Issue Links

          Activity

            People

              dobedobedoh Andrew Lyons
              dobedobedoh Andrew Lyons
              Simey Lameze Simey Lameze
              Jun Pataleta Jun Pataleta
              Janelle Barcega Janelle Barcega
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                15/Jun/20

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours, 27 minutes
                  5h 27m