mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-25 00:50:29 +00:00
Sort isoquery output by country name
This commit is contained in:
parent
0751fc7ba4
commit
40dc86cc21
1 changed files with 1 additions and 1 deletions
|
@ -873,7 +873,7 @@ function getCountryCodes($locale = 'en', $flag = true) {
|
|||
if ($flag) {
|
||||
$opt = '--flag';
|
||||
}
|
||||
exec("isoquery $opt --locale $locale", $output);
|
||||
exec("isoquery $opt --locale $locale | awk -F'\t' '{print $5 \"\t\" $0}' | sort | cut -f2-", $output);
|
||||
|
||||
$countryData = [];
|
||||
foreach ($output as $line) {
|
||||
|
|
Loading…
Reference in a new issue