am 5dc17c22
: Fix: wrong suggestion comparator.
* commit '5dc17c22ca88cf1dcf2225d8b252bcfa8c84d364': Fix: wrong suggestion comparator.
This commit is contained in:
commit
00293346a9
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue