From 8481a233c9fab842fcffd22a3af06db30bd3ace4 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Fri, 15 Dec 2017 09:59:19 +0100 Subject: [PATCH] Minor - sort by date desc see #2215 --- main/tracking/course_log_events.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/main/tracking/course_log_events.php b/main/tracking/course_log_events.php index ddb41535b2..6e28ec8bb7 100644 --- a/main/tracking/course_log_events.php +++ b/main/tracking/course_log_events.php @@ -45,14 +45,14 @@ $column_model = array( array( 'name' => 'col0', 'index' => 'col0', - 'width' => '50', + 'width' => '70', 'align' => 'left', 'sortable' => 'false' ), array( 'name' => 'col1', 'index' => 'col1', - 'width' => '60', + 'width' => '50', 'align' => 'left', 'sortable' => 'false', ), @@ -105,6 +105,11 @@ $column_model = array( $extra_params['autowidth'] = 'true'; // height auto $extra_params['height'] = 'auto'; + +// Order by date +$extra_params['sortorder'] = 'desc'; +$extra_params['sortname'] = 'col7'; + $actionLinks = ''; // Add the JS needed to use the jqgrid