From f7cd3bc0e1e1e2685ad418c23398aafdfea00dd6 Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Fri, 21 Jul 2017 08:49:18 +0800 Subject: [PATCH] MDL-59436 user: Apply default sorting for participants table --- user/classes/participants_table.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/user/classes/participants_table.php b/user/classes/participants_table.php index e93c844cfef..08ba8ccdebe 100644 --- a/user/classes/participants_table.php +++ b/user/classes/participants_table.php @@ -158,6 +158,9 @@ class participants_table extends \table_sql { $this->define_columns($columns); $this->define_headers($headers); + // Make this table sorted by first name by default. + $this->sortable(true, 'firstname'); + $this->no_sorting('select'); $this->set_attribute('id', 'participants');