From e33981d4db2a8c303157c178d2cd4c627bb8ad4f Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 14 Jul 2014 02:08:01 +0200 Subject: [PATCH] Make better sorting --- .../osmand/plus/activities/search/SearchCityByNameActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/search/SearchCityByNameActivity.java b/OsmAnd/src/net/osmand/plus/activities/search/SearchCityByNameActivity.java index 3320451fce..18f4f6183c 100644 --- a/OsmAnd/src/net/osmand/plus/activities/search/SearchCityByNameActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/search/SearchCityByNameActivity.java @@ -204,7 +204,7 @@ public class SearchCityByNameActivity extends SearchByNameAbstractActivity if(st1 != st2) { return st1 ? 1 : -1; } - compare = cs.compare(lhs.getName(en), rhs.getName(en)); + compare = cs.compare(getText(lhs), getText(rhs)); if (compare != 0) { return compare; }