1

I am using biblatex for my academic CV as follows:

\usepackage[sorting=debug,maxbibnames=99]{biblatex}
\bibliography{../bibs/publications}

...

\nocite{*}
\printbibliography

As you can tell, I am using the sort=debug option in to control which order the biblatex entries get printed. However, this requires that I pick my key names in ../bibs/publications.bib to reflect the desired order; e.g.:

 @article {1_somearticle,
   ...
 }

 @article {2_somearticle,
   ...
 }

Obviously, this is rather tedious to update when I want to add a new work. Is there a way to get biblatex to print the bibliography entries in the order they are listed in the bibtex file?

  • 1
    The idea is that biblatex does the sorting for you - always. Is there any sense to the ordering in the .bib file? It would be no trouble sorting by full date, ... I'm assuming here that the ordering in the CV is not supposed to be random. – moewe Sep 15 '16 at 17:02
  • 1
    Well, you can of course add manual information like sortyear to have more fine-grained control over the sorting "within" one year. Needless to say that even if you give the full date (why would you not be a fan?) there is no need that the output show the full year. – moewe Sep 15 '16 at 18:46
  • 1
    What exactly is the "algorithm" by which you want to sort? If it isn't to far off anything normal, I'm sure it can be implemented in biblatex without too much work (if your .bib file gives the needed information that is, but that should not be too hard to manage - manually ordering the .bib file sounds worse). – moewe Sep 15 '16 at 18:47
  • 4
    ... Frankly though, I believe adding the full date, that is writing date = {2016-07-08} instead of year = {2016}, is less awkward than manually sorting things in the .bib. And only marginally more work. – moewe Sep 15 '16 at 19:01
  • 1
    If you have found an answer that works for you, please do not hesitate to post a self-answer in case others have the same problem. – moewe Sep 15 '16 at 19:12
4

The order of entries in the .bib file is currently not something Biber can sort by. The information could probably be accessed easily, but there is no interface for it right now.

In a way sorting by order of entries in the .bib goes against the spirit of Biber/BibTeX. The idea is that the backend sorts your bibliography by some meaningful algorithm (cite order, values of fields, ...) instead of relying on you to sort the .bib file.

In your case where you want to sort by year and have multiple works from the same year you can either use the sortyear field to control the order (sortyear = {2016-1}, sortyear = {2016-2}) or you give more detailed publication dates date = {2016-04-23} and sort by full date (see here - you don't even have to print the full date in the document).

I don't believe that the two options of the last paragraph are significantly more work than sorting the references manually in the .bib by moving them around.

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.