From 19fc28b09f96f79e9acbc35dd56b1b89d6c2956e Mon Sep 17 00:00:00 2001 From: Eric Marguin Date: Thu, 3 May 2007 15:12:44 +0200 Subject: [PATCH] [svn r12261] fix a bug when sorting the users --- main/tracking/courseLog.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/main/tracking/courseLog.php b/main/tracking/courseLog.php index e99ca81abc..b463d34ae1 100644 --- a/main/tracking/courseLog.php +++ b/main/tracking/courseLog.php @@ -56,8 +56,6 @@ if(!$is_allowedToTrack) Display :: display_footer(); } - - //includes for SCORM and LP require_once('../newscorm/learnpath.class.php'); require_once('../newscorm/learnpathItem.class.php'); @@ -150,6 +148,17 @@ function count_student_in_course() return $nbStudents; } + + +function sort_users($a, $b) +{ + global $tracking_column; + if($a[$tracking_column] > $b[$tracking_column]) + return 1; + else + return -1; +} + /* ============================================================================== MAIN CODE