Reverse chronological sort order in bibliography

Hi I'm making a custom style for putting a list of publications on a personal webpage.

I have got it sorting by year (then title) with
<sort>
<key variable="issued"/>
<key variable="title"/>
</sort>

But some people want this in reverse chronological order. Is this possible?
  • This would also be very useful for me. I've had a look at docs/source code but can't figure out how to sort bibliographies most recent first. The use case is providing a list of your own publications.
  • edited June 18, 2009
    According to the spec, this is supposed to work:<sort>
    <key variable="issued" sort="descending"/>
    <key variable="title"/>
    </sort>

    This works in the new processor (yay), I'm pretty sure it works fine with the current one as well.
  • Hi Frank,

    Works perfectly thanks!

    I've added a note in the wiki (csl syntax summary page).
  • Thank you very much; I tried to sort by type, but that did not work (cf. below). Can someone help me?

    <sort>
    <key variable="type"/>
    <key variable="issued"/>
    <key variable="title"/>
    </sort>

    Many thanks, toon
  • type is not a variable - I don't think you can sort by type.

    Any workaround is going to be super tedious. I'm thinking you could probably create a very-extensive macro, in which you assign a different text value to each type. You could then sort by that macro, though I believe you'd have to include it in the bibiliography for that to work.
  • many thanks
Sign In or Register to comment.