Closed simonbyrne closed 3 years ago
Don't think would would be super hard to implement. The bibliography is an ordered dict I think so we just have to iterate over the entries of the dict sorted by xnames
or something:
This would be great to have. Currently, our bibliography looks like a random mess: https://oscar-system.github.io/Oscar.jl/dev/references/
New tag version on the way for Bibliography.jl that adds sorting option(s) thanks to @LazyScholar
I suppose long term would need a lot of different sorting options, but it is a great start that should help in making the output of DocumenterCitations.jl
less messy
Merged #39 which brings a documentation entry on how to use the sorting for now.
Sorting is still rudimentary so have a look if it is good enough for now or if some adjustments are necessary (if so please direct issues at Bibliography.jl
or BibInternal.jl
as the sorting mechanics are handled there).
https://github.com/Humans-of-Julia/Bibliography.jl/issues/17
Sorry i was too fast...
For some reason https://github.com/ali-ramadhan/DocumenterCitations.jl/blob/8606536a10cd2c6328fd91cf0d4de180dad3b3a8/src/DocumenterCitations.jl#L27 recreates the Dictionary/OrderedDict and the ordering is lost. I have to investigate how to insert it into the Documenter.Plugin
structure without loosing the ordering.
Tested it on my tiny project It should work now.
Can they be sorted by author-year?
c.f. https://github.com/CliMA/ClimateMachine.jl/pull/1687#issuecomment-720598681