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

Sort by should support an array of values

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.9
    • Fix Version/s: 3.9
    • Component/s: General
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:
      MDL-68508-master

      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

              Assignee:
              dobedobedoh Andrew Nicols
              Reporter:
              dobedobedoh Andrew Nicols
              Peer reviewer:
              Simey Lameze
              Integrator:
              Jun Pataleta
              Tester:
              Janelle Barcega
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                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