}
uasort($userGroups, function(UserGroup $groupA, UserGroup $groupB) {
- return strcmp($groupA->getName(), $groupB->getName());
+ return strcasecmp($groupA->getName(), $groupB->getName());
});
return $userGroups;
}
}
}
+
+ usort($list, function(array $item1, array $item2) {
+ return strcasecmp($item1['label'], $item2['label']);
+ });
}
// find users
// get all groups
$groups = UserGroup::getGroupsByType();
+ usort($groups, function(UserGroup $groupA, UserGroup $groupB) {
+ return strcasecmp($groupA->getName(), $groupB->getName());
+ });
+
// generate html
$html = '';
foreach ($groups as $group) {