From c5a2572c91e05347f58bfe3fa11bd3521941262f Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sun, 12 Feb 2012 19:30:32 -0500 Subject: [PATCH] Always sort translators alphabetically --- .../content/zotero/tools/testTranslators/testTranslators.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/zotero/tools/testTranslators/testTranslators.js b/chrome/content/zotero/tools/testTranslators/testTranslators.js index c6b73b504..191b7cd52 100644 --- a/chrome/content/zotero/tools/testTranslators/testTranslators.js +++ b/chrome/content/zotero/tools/testTranslators/testTranslators.js @@ -416,6 +416,10 @@ function haveTranslators(translators, type) { translatorTestViews[type] = []; translatorTestViewsToRun[type] = []; + translators = translators.sort(function(a, b) { + return a.label.localeCompare(b.label); + }); + for(var i in translators) { var translatorTestView = new TranslatorTestView(); translatorTestView.initWithTranslatorAndType(translators[i], type);