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

Give back the default sort behaviour (lastname) in the participant table

    XMLWordPrintable

    Details

      Description

      In Moodle 3.3, the participants/enrolled users table was default sorted by last name. In 3.4 and 3.5, it is default sorted by first name. This is a change in behavior, and due to the fact that people in Moodle (and in general) are usually sorted by last name, I think it can be considered a change in a negative direction.

      The simplest fix is to replace the hard coded 

      $this->sortable(true, 'firstname');
      

      with

      $this->sortable(true, 'lastname');
      

      on line 214 of user/classes/participants_table.php

      Related to (but distinct from) MDL-58745

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              azito Andrew Zito
              Reporter:
              azito Andrew Zito
              Peer reviewer:
              Kathrin Osswald
              Integrator:
              Sara Arjona (@sarjona)
              Tester:
              Janelle Barcega
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              3 Vote for this issue
              Watchers:
              14 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Mar/20

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 41 minutes
                  41m