Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1734)

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/text/dart/CompletionProposalComparator.java

Issue 788983002: Sort Quick Fixes. Make lower priorities more relavant than higher. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/text/dart/CompletionProposalComparator.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/text/dart/CompletionProposalComparator.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/text/dart/CompletionProposalComparator.java
index 81d1a019b022c9a058a610c9239d848fb027f682..c137ea09469f6838d141f57de098bf935ed70dfe 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/text/dart/CompletionProposalComparator.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/text/dart/CompletionProposalComparator.java
@@ -53,7 +53,7 @@ public final class CompletionProposalComparator implements Comparator<Object> {
if (!fOrderAlphabetically) {
int r1 = getRelevance(p1);
int r2 = getRelevance(p2);
- int relevanceDif = r2 - r1;
+ int relevanceDif = r1 - r2;
if (relevanceDif != 0) {
return relevanceDif;
}

Powered by Google App Engine
This is Rietveld 408576698