hayagriva icon indicating copy to clipboard operation
hayagriva copied to clipboard

Fix sorting citation by citation number

Open lluchs opened this issue 1 year ago • 1 comments

Citations with citation numbers currently aren't sorted properly, for example output from the test in the second commit:

Expected:
[1]–[4]
[1]–[4]

Got:
[1]–[4]
[2], [1], [4], [3]

This PR defers sorting the citations until finish is called and the citation numbers are determined.

lluchs avatar May 16 '24 23:05 lluchs

I just wondered why my citations are not sorted properly and I have these weird combinations sometimes. Thanks for your PR, now I know that I should have configured my CSL in the right way. Hope this gets merged soon 👍

AnsgarLichter avatar Jul 05 '24 13:07 AnsgarLichter

I believe this would close https://github.com/typst/hayagriva/issues/115

Enivex avatar Aug 01 '24 22:08 Enivex

Thank you! :blue_heart:

PgBiel avatar Aug 06 '24 14:08 PgBiel