Skip to content

[ZOTERO] Do not override CSL specified sorting of bibliography#517

Open
jonasViehweger wants to merge 3933 commits into
ONLYOFFICE:masterfrom
jonasViehweger:master
Open

[ZOTERO] Do not override CSL specified sorting of bibliography#517
jonasViehweger wants to merge 3933 commits into
ONLYOFFICE:masterfrom
jonasViehweger:master

Conversation

@jonasViehweger
Copy link
Copy Markdown

@jonasViehweger jonasViehweger commented Mar 12, 2026

Currently the sorting specified in the CSL is not honored when inserting the bibliography. Instead it overrides the (correct) sorting that the formatter provides and always inserts in the order in which the citation entries are present in _storage (by order of insertion).

I've tested this change with Nature and Copernicus Publications CSLs. Copernicus Publications specifies alphabetical sorting, Nature by first occurence in the text. The change now correctly sorts the bibliography for both styles.

Edit: A more widely used citation style which specifies alphabetic sorting is the Chicago Manual of Style

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 12, 2026

CLA assistant check
All committers have signed the CLA.

@jonasViehweger
Copy link
Copy Markdown
Author

Fixes #518

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.