From 67dac4ec0d3c8377ae527e5db971c8820a713769 Mon Sep 17 00:00:00 2001 From: aurimasv Date: Sat, 10 Mar 2012 03:07:45 -0600 Subject: [PATCH] Moved tag sorting to a later point. --- .../zotero/tools/testTranslators/translatorTester.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js index ff0919873c..1a05d837bb 100644 --- a/chrome/content/zotero/tools/testTranslators/translatorTester.js +++ b/chrome/content/zotero/tools/testTranslators/translatorTester.js @@ -221,9 +221,6 @@ Zotero_TranslatorTester._sanitizeItem = function(item, forSave) { "itemType", "complete", "creators"]; for(var field in item) { if(skipFields.indexOf(field) !== -1) { - if(field == 'tags') { - item[field].sort(); - } continue; } @@ -246,6 +243,9 @@ Zotero_TranslatorTester._sanitizeItem = function(item, forSave) { // remove fields to be ignored if("accessDate" in item) delete item.accessDate; + + //sort tags, if they're still there + if(item.tags) item.tags.sort(); return item; };