Skip to content
Snippets Groups Projects
Commit 5dc17c22 authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi
Browse files

Fix: wrong suggestion comparator.

Change-Id: I8829c7cb3060955e345fbdc003cf77f8469d37c0
parent 2600c092
No related branches found
No related tags found
No related merge requests found
...@@ -30,9 +30,9 @@ class SuggestedWord { ...@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment