Merge branch 'r3.7'

This commit is contained in:
Victor Shcherb 2020-05-24 19:55:27 +02:00
commit 6f2935d572

View file

@ -121,6 +121,11 @@ public class SearchPhrase {
int i1 = CommonWords.getCommonSearch(o1.toLowerCase());
int i2 = CommonWords.getCommonSearch(o2.toLowerCase());
if (i1 != i2) {
if(i1 == -1) {
return -1;
} else if(i2 == -1) {
return 1;
}
return -icompare(i1, i2);
}
// compare length without numbers to not include house numbers