|
@@ -42,7 +42,7 @@ class FlatViewTable extends SortableTable
|
|
|
$addparams = null,
|
|
|
$mainCourseCategory = null
|
|
|
) {
|
|
|
- parent :: __construct('flatviewlist', null, null, (api_is_western_name_order() xor api_sort_by_first_name()) ? 1 : 0);
|
|
|
+ parent :: __construct('flatviewlist', null, null, api_is_western_name_order() ? 1 : 0);
|
|
|
|
|
|
$this->selectcat = $selectcat;
|
|
|
|
|
@@ -546,10 +546,12 @@ class FlatViewTable extends SortableTable
|
|
|
if ($is_western_name_order) {
|
|
|
|
|
|
$users_sorting = FlatViewDataGenerator :: FVDG_SORT_FIRSTNAME;
|
|
|
+
|
|
|
} else {
|
|
|
|
|
|
$users_sorting = FlatViewDataGenerator :: FVDG_SORT_LASTNAME;
|
|
|
}
|
|
|
+
|
|
|
if ($this->direction == 'DESC') {
|
|
|
$users_sorting |= FlatViewDataGenerator :: FVDG_SORT_DESC;
|
|
|
} else {
|