Sort default cities by name, not population
commit8134b4b98139d1769920fa69088bf23b89308216
authorMichael Terry <michael.terry@canonical.com>
dateMon 29 Feb 2016, 18:38 (11 years ago)
parent9a5d0c7
plugins/Wizard/timezonemodel.cpp+1−1
@@ -195,7 +195,7 @@ QString TimeZoneLocationModel::country() const
195195
196196static bool citycmp(GeonamesCity *a, GeonamesCity *b)
197197{
198− return geonames_city_get_population(b) < geonames_city_get_population(a);
198+ return QString(geonames_city_get_name(a)).localeAwareCompare(geonames_city_get_name(b)) < 0;
199199}
200200
201201void TimeZoneLocationModel::setCountry(const QString &country)