From acc3a70083effd77a5928c20f0406e090358cd69 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 8 Sep 2020 05:02:15 -0400 Subject: [PATCH] Remove SQL sort by parentItemID in Zotero.Sync.Data.Local.getUnsynced() Now handled by Zotero.DataObjects.sortByParent() --- chrome/content/zotero/xpcom/sync/syncLocal.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/chrome/content/zotero/xpcom/sync/syncLocal.js b/chrome/content/zotero/xpcom/sync/syncLocal.js index ee1c366b8b..6952aaf015 100644 --- a/chrome/content/zotero/xpcom/sync/syncLocal.js +++ b/chrome/content/zotero/xpcom/sync/syncLocal.js @@ -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]);