Fix: wrong suggestion comparator.
Change-Id: I8829c7cb3060955e345fbdc003cf77f8469d37c0main
parent
2600c092b0
commit
5dc17c22ca
|
@ -30,9 +30,9 @@ class SuggestedWord {
|
|||
public:
|
||||
bool operator()(const SuggestedWord &left, const SuggestedWord &right) {
|
||||
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:
|
||||
|
|
Loading…
Reference in New Issue