Merge branch 'r3.7'
This commit is contained in:
commit
6f2935d572
1 changed files with 5 additions and 0 deletions
|
@ -121,6 +121,11 @@ public class SearchPhrase {
|
||||||
int i1 = CommonWords.getCommonSearch(o1.toLowerCase());
|
int i1 = CommonWords.getCommonSearch(o1.toLowerCase());
|
||||||
int i2 = CommonWords.getCommonSearch(o2.toLowerCase());
|
int i2 = CommonWords.getCommonSearch(o2.toLowerCase());
|
||||||
if (i1 != i2) {
|
if (i1 != i2) {
|
||||||
|
if(i1 == -1) {
|
||||||
|
return -1;
|
||||||
|
} else if(i2 == -1) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
return -icompare(i1, i2);
|
return -icompare(i1, i2);
|
||||||
}
|
}
|
||||||
// compare length without numbers to not include house numbers
|
// compare length without numbers to not include house numbers
|
||||||
|
|
Loading…
Reference in a new issue