Fix: wrong suggestion comparator.
Change-Id: I8829c7cb3060955e345fbdc003cf77f8469d37c0main
parent
2600c092b0
commit
5dc17c22ca
|
@ -30,9 +30,9 @@ class SuggestedWord {
|
||||||
public:
|
public:
|
||||||
bool operator()(const SuggestedWord &left, const SuggestedWord &right) {
|
bool operator()(const SuggestedWord &left, const SuggestedWord &right) {
|
||||||
if (left.getScore() != right.getScore()) {
|
if (left.getScore() != right.getScore()) {
|
||||||
return left.getScore() < right.getScore();
|
return left.getScore() > right.getScore();
|
||||||
}
|
}
|
||||||
return left.getCodePointCount() > right.getCodePointCount();
|
return left.getCodePointCount() < right.getCodePointCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in New Issue