Browse Source

Fix #2301 Sorting of the list of the Student

Angel Fernando Quiroz Campos 7 years ago
parent
commit
fd7af52f78
1 changed files with 4 additions and 4 deletions
  1. 4 4
      main/inc/lib/tracking.lib.php

+ 4 - 4
main/inc/lib/tracking.lib.php

@@ -7353,11 +7353,11 @@ class TrackingCourseLog
             $user_row = [];
             $user_row['official_code'] = $user['official_code']; //0
             if ($is_western_name_order) {
-                $user_row['firstname'] = $user['col1'];
-                $user_row['lastname'] = $user['col2'];
-            } else {
-                $user_row['lastname'] = $user['col1'];
                 $user_row['firstname'] = $user['col2'];
+                $user_row['lastname'] = $user['col1'];
+            } else {
+                $user_row['lastname'] = $user['col2'];
+                $user_row['firstname'] = $user['col1'];
             }
             $user_row['username'] = $user['username'];
             $user_row['time'] = $user['time'];