mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 11:58:53 +00:00
Compare commits
2 commits
e324318f61
...
a1aeb7a5fe
Author | SHA1 | Date | |
---|---|---|---|
|
a1aeb7a5fe | ||
|
2f43c1facd |
1 changed files with 5 additions and 3 deletions
|
@ -75,10 +75,12 @@ class language_file_helper
|
||||||
/**
|
/**
|
||||||
* Sorts the languages by their name instead of iso code
|
* Sorts the languages by their name instead of iso code
|
||||||
*
|
*
|
||||||
* @return array
|
* @param mixed $a First language data
|
||||||
|
* @param mixed $b Second language data
|
||||||
|
* @return int
|
||||||
*/
|
*/
|
||||||
private static function sort_by_local_name($a, $b)
|
private static function sort_by_local_name($a, $b): int
|
||||||
{
|
{
|
||||||
return $a['local_name'] > $b['local_name'];
|
return $a['local_name'] <=> $b['local_name'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue