Przeglądaj źródła

[svn r13331] default order of lists

Eric Marguin 17 lat temu
rodzic
commit
8422f6965d
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      main/mySpace/index.php
  2. 1 1
      main/mySpace/myStudents.php

+ 1 - 1
main/mySpace/index.php

@@ -83,7 +83,7 @@ if(api_is_allowed_to_create_course())
 					INNER JOIN $tbl_course as course
 						ON course.code = course_rel_user.course_code
 				  	WHERE course_rel_user.user_id='".$_user['user_id']."' AND course_rel_user.status='1'
-				  	ORDER BY course.code";
+				  	ORDER BY course.title";
 	$resultNbCours = api_sql_query($sqlNbCours, __FILE__, __LINE__);
 	$a_courses = api_store_result($resultNbCours);
 	$nb_teacher_courses = count($a_courses);

+ 1 - 1
main/mySpace/myStudents.php

@@ -463,7 +463,7 @@ if(!empty($_GET['student']))
 				$a_headerLearnpath = array(get_lang('Learnpath'),get_lang('Time'),get_lang('Progress'),get_lang('LastConnexion'));
 			
 			$sqlLearnpath = "	SELECT lp.name,lp.id
-								FROM ".$a_infosCours['db_name'].".".$tbl_course_lp." AS lp
+								FROM ".$a_infosCours['db_name'].".".$tbl_course_lp." AS lp ORDER BY lp.name ASC
 							";
 
 			$resultLearnpath = api_sql_query($sqlLearnpath);