Compare commits

..

1 commit

Author SHA1 Message Date
rxu
c7ab20e347
Merge 0e0214a71d into d017eff8f1 2025-06-15 08:52:50 +00:00

View file

@ -129,23 +129,10 @@ class language_file_helper
/** /**
* Sorts the languages by their name instead of iso code * Sorts the languages by their name instead of iso code
* *
* @param mixed $a First language data * @return array
* @param mixed $b Second language data
* @return int
*/ */
private static function sort_by_local_name(mixed $a, mixed $b): int private static function sort_by_local_name($a, $b)
{ {
if ($a['local_name'] > $b['local_name']) return $a['local_name'] > $b['local_name'];
{
return 1;
}
else if ($a['local_name'] < $b['local_name'])
{
return -1;
}
else
{
return 0;
}
} }
} }