mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-27 04:18:55 +00:00
Compare commits
1 commit
efe9ffb92b
...
425a6a182c
Author | SHA1 | Date | |
---|---|---|---|
|
425a6a182c |
1 changed files with 12 additions and 1 deletions
|
@ -135,6 +135,17 @@ class language_file_helper
|
|||
*/
|
||||
private static function sort_by_local_name(mixed $a, mixed $b): int
|
||||
{
|
||||
return $a['local_name'] <=> $b['local_name'];
|
||||
if ($a['local_name'] > $b['local_name'])
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else if ($a['local_name'] < $b['local_name'])
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue