mirror of
https://github.com/zotero/zotero.git
synced 2026-10-10 03:28:10 +00:00
Moved tag sorting to a later point.
This commit is contained in:
parent
828d10a396
commit
67dac4ec0d
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue