fixed from error
This commit is contained in:
@@ -590,8 +590,8 @@ queryend;
|
|||||||
|
|
||||||
protected function sortUserList($userList): array {
|
protected function sortUserList($userList): array {
|
||||||
usort($userList, function($a, $b) {
|
usort($userList, function($a, $b) {
|
||||||
$nameComparison = stricmp($a['last_name'], $b['last_name']);
|
$nameComparison = strcasecmp($a['last_name'], $b['last_name']);
|
||||||
return ($nameComparison !== 0) ? $nameComparison : stricmp($a['first_name'], $b['first_name']);
|
return ($nameComparison !== 0) ? $nameComparison : strcasecmp($a['first_name'], $b['first_name']);
|
||||||
});
|
});
|
||||||
return $userList;
|
return $userList;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user