Skip to content

Commit cfcc954

Browse files
committed
Fix sorting languages in various lists
1 parent ffddd0c commit cfcc954

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mlanglib.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1866,7 +1866,11 @@ public static function list_languages($english=true, $usecache=true, $showcode=t
18661866
}
18671867

18681868
$rs->close();
1869-
asort($langs);
1869+
1870+
uasort($langs, function($a, $b) {
1871+
return strcmp($a['thislanguageint'], $b['thislanguageint']);
1872+
});
1873+
18701874
$cache->set('languages', $langs);
18711875
}
18721876

0 commit comments

Comments
 (0)