am 5dc17c22: Fix: wrong suggestion comparator.

* commit '5dc17c22ca88cf1dcf2225d8b252bcfa8c84d364':
  Fix: wrong suggestion comparator.
This commit is contained in:
Keisuke Kuroyanagi 2014-03-11 05:33:06 -07:00 committed by Android Git Automerger
commit 00293346a9

View file

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