Compare commits

..

2 commits

Author SHA1 Message Date
Daniel James
a1aeb7a5fe
Merge b6c42b3768 into 2f43c1facd 2025-06-16 11:27:50 +01:00
Marc Alexander
2f43c1facd
[ticket/17399] Fix docblock and use space-ship operator
PHPBB-17399
2025-06-16 10:34:38 +02:00

View file

@ -75,10 +75,12 @@ class language_file_helper
/**
* 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'];
}
}