changed to usort
This commit is contained in:
@@ -94,7 +94,9 @@ function pull_db(): array {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
ksort($pbdb);
|
||||
usort($pbdb, function ($a, $b) {
|
||||
return strcasecmp($a['name'], $b['name']);
|
||||
});
|
||||
|
||||
return $pbdb;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user