Bibliography in wrong order if more than one work of an author is listed

I need your help with the following problem: The style I'm using is "Beltz - Pädagogik (German)" which according to the csl-file should sort the bibliography according to "creator-year-short". But instead the sequence in the bibliography mirrors the sequence of the first appearances of the works in the text. So in the bibliography I get:

Höflich, J. R. (1996a): ...
Höflich, J. R. (2005): ...
Höflich, J. (1997): ...
Höflich, J. R. (2016): ...
Höflich, J. R. (1996b): ...

instead of

Höflich, J. R. (1996a): ...
Höflich, J. R. (1996b): ...
Höflich, J. (1997): ...
Höflich, J. R. (2005): ...
Höflich, J. R. (2016): ...

Any ideas how to solve this problem? Thank you in advance!
  • Yeah, this is a bit weird -- the reason for this is in the "year" macro, specifically that original-date is listed before issued. The sorting algorithm just looks at the first date in that macro, and since both items don't have an original-date, it evaluates them as the same and then moves to the next sort heuristic, which, absent anything else defined, is indeed the order of appearance.

    To fix this, you'd have to create a macro, e.g. year-sort

    <macro name="year-sort">
    <date variable="issued" form="numeric" date-parts="year"/>
    </macro>


    and then use that as a sort key instead of creator-year-short (since creator-short is already included as the primary sort key). That should work.
  • It works! Thank you very much for your help!
Sign In or Register to comment.