MDL-59436 user: Apply default sorting for participants table

This commit is contained in:
Jun Pataleta 2017-07-21 08:49:18 +08:00
parent a9991533fa
commit f7cd3bc0e1

View File

@ -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');