on xenial help sign in
Go back to sorting cities (when no search pattern entered) by population; Paty liked it
6ce18f8Michael Terry
plugins/Wizard/timezonemodel.cpp+1−1
@@ -195,7 +195,7 @@ QString TimeZoneLocationModel::country() const
195
195
196static bool citycmp(GeonamesCity *a, GeonamesCity *b)
196static bool citycmp(GeonamesCity *a, GeonamesCity *b)
197{
197{
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);
199}
199}
200
200
201void TimeZoneLocationModel::setCountry(const QString &country)
201void TimeZoneLocationModel::setCountry(const QString &country)