typst / hayagriva

Rusty bibliography management.
Apache License 2.0
289 stars 44 forks source link

Fix sorting citation by citation number #168

Open lluchs opened 1 month ago

lluchs commented 1 month ago

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.

AnsgarLichter commented 2 days ago

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 👍