Remove SQL sort by parentItemID in Zotero.Sync.Data.Local.getUnsynced()

Now handled by Zotero.DataObjects.sortByParent()
This commit is contained in:
Dan Stillman 2020-09-08 05:02:15 -04:00
parent 8f5662ee6a
commit acc3a70083

View file

@ -546,10 +546,6 @@ Zotero.Sync.Data.Local = {
+ "LEFT JOIN itemNotes INo ON (O.itemID=INo.itemID) ";
}
sql += " WHERE libraryID=? AND synced=0";
// Sort child items last
if (objectType == 'item') {
sql += " ORDER BY COALESCE(IA.parentItemID, INo.parentItemID)";
}
var ids = yield Zotero.DB.columnQueryAsync(sql, [libraryID]);