mirror of
https://github.com/zotero/zotero.git
synced 2026-10-04 02:31:47 +00:00
Fix whitespace (from 53322e6e)
This commit is contained in:
parent
ca0ad42a6a
commit
d9197235d5
1 changed files with 9 additions and 9 deletions
|
|
@ -243,17 +243,17 @@ Zotero.Duplicates.prototype._findDuplicates = function () {
|
|||
+ "AND itemTypeID NOT IN (1, 14) "
|
||||
+ "AND itemID NOT IN (SELECT itemID FROM deletedItems)";
|
||||
var rows = Zotero.DB.query(sql, [this._libraryID]) || [];
|
||||
//normalize all values ahead of time
|
||||
// Normalize all values ahead of time
|
||||
rows = rows.map(function(row) {
|
||||
row.value = normalizeString(row.value);
|
||||
return row;
|
||||
});
|
||||
//sort rows by normalized values
|
||||
row.value = normalizeString(row.value);
|
||||
return row;
|
||||
});
|
||||
// Sort rows by normalized values
|
||||
rows = rows.sort(function(a, b) {
|
||||
if(a.value === b.value) return 0;
|
||||
if(a.value < b.value) return -1;
|
||||
return 1;
|
||||
});
|
||||
if(a.value === b.value) return 0;
|
||||
if(a.value < b.value) return -1;
|
||||
return 1;
|
||||
});
|
||||
processRows(function (a, b) {
|
||||
var aTitle = a.value;
|
||||
var bTitle = b.value;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue