How can I automatically sort the in-text citations by year? For example, I want that


automatically yields

(Author B (1993), Author C (2010), Author A (2013), Author D (2021))

I have tried something like \usepackage[sort]{natbib}, but it does not seem to work. I am using the abbrvnat.bst from this bioRxiv preprint template. Here is my file. Any ideas?

  • 1
    The sorting in citations, if enabled, will usually be the same that you have in the bibliography. So this will generally not give you citations sorted by year. In theory something else could be done, but requires some work: tex.stackexchange.com/q/549708/35864, tex.stackexchange.com/q/484172/35864
    – moewe
    Feb 3 at 14:14
  • @moewe - The abbrvnat bibliography style (which the OP appears to claim to be using) does sort the entries by authors' surnames. As I report in the answer I just posted, I am unable to reproduce the OP's output. Instead, I get a citation call-out with all entries sorted chronologically.
    – Mico
    Feb 3 at 17:15
  • The file abbrvnat.bst is a standard part of all TeX distributions. There's no need to provide a hyperlink to a copy of this file.
    – Mico
    Feb 3 at 17:17
  • 1
    @Mico You get chronological sorting if all entries are by the same authors, but if you have different authors the names, the names are more relevant, so the citations are not generally sorted chronologically.
    – moewe
    Feb 3 at 17:24
  • @moewe - It looks like I got fooled by the OP's write-up, then. I had assumed that the four "Citation" entries were all authored by the same person(s). That wasn't smart of me... I've gone ahead and deleted my answer as it's not likely to be irrelevant.
    – Mico
    Feb 3 at 17:33


You must log in to answer this question.

Browse other questions tagged .