diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 3712b194b8..243d8e9c4c 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -1470,6 +1470,7 @@ Zotero.Integration.Session.prototype._insertNoteIntoDocument = async function (f // Do these in reverse order to ensure we don't get messy document edits placeholderIDs.reverse(); + citations.reverse(); let fields = await this._doc.convertPlaceholdersToFields(placeholderIDs, this.data.prefs.noteType, this.data.prefs.fieldType); let insertedCitations = await Promise.all(fields.map(async (field, index) => {