Merge branch 'MDL-30472-master' of git://github.com/ankitagarwal/moodle
[moodle.git] / user / index.php
index 2f4119b..362d2be 100644 (file)
 
     if (!isset($hiddenfields['lastaccess'])) {
         $table->sortable(true, 'lastaccess', SORT_DESC);
+    } else {
+        $table->sortable(true, 'firstname', SORT_ASC);
     }
 
     $table->no_sorting('roles');