Sort arrays before comparing them. Tag order does not matter and authors will not be sorted.

This commit is contained in:
aurimasv 2012-03-08 02:34:38 -06:00
parent e3ce3bf0c4
commit 5816e586fe

View File

@ -574,6 +574,8 @@ Zotero_TranslatorTester.prototype._compare = function(i, j) {
var match = false;
if (Object.prototype.toString.apply(i) === '[object Array]') {
if (Object.prototype.toString.apply(j) === '[object Array]') {
i.sort();
j.sort();
do {
match = this._compare(i.pop(), j.pop());
} while (match && i.length && j.length);