From fffa5ce8f7e11a9091f0323476efbe9a38543a09 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Fri, 21 Dec 2012 00:15:54 -0500 Subject: [PATCH] Minor - Added sorting alteration helper doc --- main/inc/lib/usermanager.lib.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main/inc/lib/usermanager.lib.php b/main/inc/lib/usermanager.lib.php index e639dfe8e4..90c9aca3a3 100644 --- a/main/inc/lib/usermanager.lib.php +++ b/main/inc/lib/usermanager.lib.php @@ -2224,8 +2224,11 @@ class UserManager { // Get the list of sessions per user $condition_date_end = null; + // uncomment commented query lines to alter the query sorting + //$order = ' ORDER BY session_category_name, short_name '; $order = ' ORDER BY session_category_name, name '; if ($reverse_order) { + //$order = ' ORDER BY session_category_name DESC, short_name DESC '; $order = ' ORDER BY session_category_name DESC, name DESC '; } @@ -2243,9 +2246,9 @@ class UserManager { $select = "SELECT DISTINCT session.id, - session.name, - - access_start_date, + session.name, ". + //SUBSTR(session.name,LOCATE('-',session.name)+1) as short_name, + " access_start_date, access_end_date, coach_access_start_date, coach_access_end_date,