am 5dc17c22: Fix: wrong suggestion comparator.

* commit '5dc17c22ca88cf1dcf2225d8b252bcfa8c84d364':
  Fix: wrong suggestion comparator.
main
Keisuke Kuroyanagi 2014-03-11 05:33:06 -07:00 committed by Android Git Automerger
commit 00293346a9
1 changed files with 2 additions and 2 deletions

View File

@ -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: