on xenial help sign in
Go back to sorting cities (when no search pattern entered) by population; Paty liked it
commit6ce18f86b0e58ea885cfe79a8410f05990662226 authorMichael Terry <michael.terry@canonical.com> dateWed 2 Mar 2016, 11:19 (11 years ago) parente54d85c
1 file changed+1−1
plugins/Wizard/timezonemodel.cpp+1−1
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 QString(geonames_city_get_name(a)).localeAwareCompare(geonames_city_get_name(b)) < 0;
198+ return geonames_city_get_population(b) < geonames_city_get_population(a);
199199}
200200
201201void TimeZoneLocationModel::setCountry(const QString &country)