www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit c5a2572c91e05347f58bfe3fa11bd3521941262f
parent 3510e1dda8929a988078e5a2b0c9391452ea59aa
Author: Simon Kornblith <simon@simonster.com>
Date:   Sun, 12 Feb 2012 19:30:32 -0500

Always sort translators alphabetically

Diffstat:
Mchrome/content/zotero/tools/testTranslators/testTranslators.js | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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);