Make better sorting

This commit is contained in:
Victor Shcherb 2014-07-14 02:08:01 +02:00
parent b105d89881
commit e33981d4db

View file

@ -204,7 +204,7 @@ public class SearchCityByNameActivity extends SearchByNameAbstractActivity<City>
if(st1 != st2) { if(st1 != st2) {
return st1 ? 1 : -1; return st1 ? 1 : -1;
} }
compare = cs.compare(lhs.getName(en), rhs.getName(en)); compare = cs.compare(getText(lhs), getText(rhs));
if (compare != 0) { if (compare != 0) {
return compare; return compare;
} }