From cb24c38915fc23248bf6a669935b7810e9dc44e9 Mon Sep 17 00:00:00 2001 From: Thomas Wilburn Date: Thu, 17 Jul 2014 00:05:42 -0700 Subject: [PATCH] Fix a bug in the palette from i18n transition. --- js/ui/palette.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/palette.js b/js/ui/palette.js index 9a95f78..1cfbd23 100644 --- a/js/ui/palette.js +++ b/js/ui/palette.js @@ -176,7 +176,7 @@ define([ var bMatch = fuzzyCommand.exec(bLabel); var aScore = aMatch.index + aMatch[0].length; var bScore = bMatch.index + bMatch[0].length; - if (aScore == bScore) return ((aLabel) < (b.Label) ? -1 : 1); + if (aScore == bScore) return ((aLabel) < (bLabel) ? -1 : 1); return aScore - bScore; }); this.results = results.slice(0, findResultsLimit);