Commit 676c9d76 authored by Volker Krause's avatar Volker Krause
Browse files

Sort country selector

parent 3f18d3ad
Pipeline #111808 passed with stage
in 1 minute and 30 seconds
......@@ -73,7 +73,7 @@ Kirigami.ScrollablePage {
}
}
}
return [...new Set(countries)].sort();
return [...new Set(countries)].sort((lhs, rhs) => { return Country.fromAlpha2(lhs).name.localeCompare(Country.fromAlpha2(rhs).name); });
}
Layout.fillWidth: true
readonly property var currentCountry: Country.fromAlpha2(currentValue)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment