Skip to content

Commit

Permalink
Fixes user sorting see BT#9287
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Feb 6, 2015
1 parent df11c14 commit 178b276
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main/gradebook/lib/fe/flatviewtable.class.php
Expand Up @@ -541,10 +541,13 @@ public function get_table_data($from = 1, $per_page = null, $column = null, $dir
}

// retrieve sorting type

if ($is_western_name_order) {
$users_sorting = ($this->column == 0 ? FlatViewDataGenerator :: FVDG_SORT_FIRSTNAME : FlatViewDataGenerator :: FVDG_SORT_LASTNAME);
//$users_sorting = ($this->column == 0 ? FlatViewDataGenerator :: FVDG_SORT_FIRSTNAME : FlatViewDataGenerator :: FVDG_SORT_LASTNAME);
$users_sorting = FlatViewDataGenerator :: FVDG_SORT_FIRSTNAME;
} else {
$users_sorting = ($this->column == 0 ? FlatViewDataGenerator :: FVDG_SORT_LASTNAME : FlatViewDataGenerator :: FVDG_SORT_FIRSTNAME);
//$users_sorting = ($this->column == 0 ? FlatViewDataGenerator :: FVDG_SORT_LASTNAME : FlatViewDataGenerator :: FVDG_SORT_FIRSTNAME);
$users_sorting = FlatViewDataGenerator :: FVDG_SORT_LASTNAME;
}
if ($this->direction == 'DESC') {
$users_sorting |= FlatViewDataGenerator :: FVDG_SORT_DESC;
Expand Down

0 comments on commit 178b276

Please sign in to comment.