am 5dc17c22: Fix: wrong suggestion comparator.
* commit '5dc17c22ca88cf1dcf2225d8b252bcfa8c84d364': Fix: wrong suggestion comparator.main
commit
00293346a9
|
@ -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