BibTeX, biblatex and biberchanging the sort order of the bibliography

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
vmcb
Posts: 1
Joined: Tue Jan 13, 2009 8:43 am

changing the sort order of the bibliography

Post by vmcb »

Hi there

I would like to generate a list of references sorted by year, in descending order, i.e. recent references should appear at the top of the list while older references should appear towards the bottom.

I am making the references with the commands

Code: Select all

\bibliographystyle{astron}
\bibliography{publications2}
Changing this line near the top of astron.bst (attached):

Code: Select all

{ label extra.label sort.label }
to

Code: Select all

{ label extra.label sort.year }
sorts the references by year, but in the order oldest references appear at the top of the list.

Any idea how I can redefine the sort order?

Thanks!
Last edited by cgnieder on Thu Oct 11, 2012 11:25 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: changing the sort order of the bibliography

Post by kaiserkarl13 »

It's possible. I don't know how to do it from the existing style file you have off the top of my head, but if you're OK with creating a new one, you can type "latex makebst" and answer all the questions, one of which is:

"ORDERING OF REFERENCES (if non-author/year and non-alph)
(*) Alphabetical by all authors
(c) Citation order (unsorted, like unsrt.bst)
(d) Year ordered and then by authors
(r) Reverse year ordered and then by authors"

You want "reverse year ordered and then by authors."
cminard
Posts: 1
Joined: Thu Oct 11, 2012 7:21 pm

Re: changing the sort order of the bibliography

Post by cminard »

I've created my own .bst file, and my citations are reverse year ordered and then by authors.

However, what I really want is: Reverse year order and then reverse month order and then by authors. Does anyone know how to do that? Thanks!
Post Reply