16

I'm using \parencites for citing and style=numeric as biblatex option. In the output the references are ordered as in the sourcecode, e.g. [13, 5, 10]

Is there a way to get the references in ascending order?

Here is a MWE:

\documentclass{article}
\usepackage[
    backend=biber,
    style=numeric,
    sortcites,
    sorting=nty,
    backref,
    natbib,
    hyperref
]{biblatex}

\addbibresource{biblatex-examples.bib}

\begin{document}
  I'll cite Augustine~\cite{augustine} here,
  and a few others
  here~\parencites{aristotle:poetics}{angenendt}{aksin}.
  \printbibliography
\end{document}

It will output I'll cite Augustine [4] here, and a few others here [3, 2, 1].

What I want is: I'll cite Augustine [4] here, and a few others here [1, 2, 3].

So just the sorted inside [ ] while the bibliography stays sorted alphabetically.

  • Please, take a look at tex.stackexchange.com/questions/51434/… – user13907 Aug 31 '13 at 11:45
  • @Papiro thanks for your comment, but that's not what I'm looking for. The order in the references section is OK, it's ordered in alphabetical order. What i want is that the references in the text, where I have multiple citations at on place, are ordered numerically. I'd appreciate if you could help me to rephrase the question to make that clear. – Scolytus Aug 31 '13 at 12:01
14

You need to specify the option sortcites=true in the preamble. The citations are then sorted according to the global sorting scheme (see more here: https://tex.stackexchange.com/a/51439/35864).

Cite sorting only works with the "normal" \*cite commands, not with the \*cites ones. This is because in \cites{a}{b} each key is processed as if passed to a single \cite command. \cite{a,b} has the full list available and is thus able to sort the citations. So if you want sorting, you'll need to use \parencite{aristotle:poetics,aksin,angenendt} instead of \parencites{aristotle:poetics}{angenendt}{aksin}.

Note that constructions with pre- and postnotes for each entry such as \parencites[see][2]{aristotle:poetics}[4]{angenendt}[cf.][5]{aksin} cannot be realised with \parencite.

  • Thanks for the answer, but it also sorts the bibliography. See my edit and MWE for clarification. – Scolytus Aug 31 '13 at 12:28
  • 3
    What sorts the bibliography? The bibliography is sorted by the scheme you have specified (or by the scheme specified by the style you use, if you do not choose to overwrite it), sortcites sorts the citations accordingly. The problem you are facing seems to be connected to using \parencites{aristotle:poetics}{angenendt}{aksin}, if I use \parencite{aristotle:poetics,angenendt,aksin} the sorting works for me. Is that an option for you? – moewe Aug 31 '13 at 13:03
  • Hmm... That would be fully OK for me, I was just wondering whether this is sound? The BibLaTeX doc has it only with {key1}{key2}{key3}. But maybe that's due to the fact that they use post- and prenotes as well... – Scolytus Aug 31 '13 at 13:07
  • 1
    And it works in my real world doc as well :) If you add this to your answer, I'll be happy to accept it. Thanks! – Scolytus Aug 31 '13 at 13:11
  • 1
    Apparently there is a way to make multicite commands sortable: Sorting citations using \cites command in biblatex. – moewe Feb 17 '15 at 15:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.