fixed from error

This commit is contained in:
Torsten Schulz
2023-12-28 17:33:57 +01:00
parent 6cc48798d9
commit 87a4ef7d55

View File

@@ -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;
} }