BibTeX, biblatex and biberbibtex: Ordering of references

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
vimsaa
Posts: 1
Joined: Wed Feb 22, 2023 12:38 pm

bibtex: Ordering of references

Post by vimsaa »

Dear all,

I am stuck with a rather pesky requirement from a journal about ordering references. I have two references where the first author is the same, one written in 2017 and one in 2021. My reference list is generated by placing the reference in 2017 before 2021. With the author, year sort, naturally, this is right because the bib-style file sorts only on the first author. However, the journal requires sorting by all authors before applying the sort-by-year rule. So, in this case, the 2021 reference should come before the 2017 one... I provide a self-contained example below. Any help resolving this is most appreciated!

I am new to the forum, hopefully this information is sufficient for feedback! Thank you.

\documentclass[12pt]{article}
\usepackage{natbib}



\usepackage{filecontents}
\begin{filecontents}{mybib.bib}
@techreport{betermier2021portfolios,
title={What Do the Portfolios of Individual Investors Reveal About the Cross-Section of Equity Returns?},
author={Betermier, Sebastien and Calvet, Laurent E. and Kn{\"u}pfer, Samuli and Kvaerner, Jens},
type={Working Paper},
year=2021
}

@article{betermier2017value,
title={Who are the Value and Growth Investors?},
author={Betermeier, Sebastien and Calvet, Laurent E. and Sodini, Paolo},
journal={Journal of Finance},
volume={72},
number={1},
pages={5--46},
year={2017},
publisher={Wiley Online Library}
}
\end{filecontents}

\begin{document}

I would like the references to order \citet{betermier2021portfolios} before \citet{betermier2017value}. How does one get that done?

\newpage
\renewcommand{\refname}{REFERENCES}
\bibliographystyle{aer}
\bibliography{mybib}
\end{document}

Recommended reading 2024:

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

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

User avatar
MjK
Posts: 89
Joined: Fri Jan 28, 2022 6:09 pm

bibtex: Ordering of references

Post by MjK »

With BibTeX the sort order depends on \bibliographystyle{…}. So in your case, the publisher should provide this by the bst file it either provides or recommends.

With biblatex and biber, the sort order would be configurable with LaTeX code.

BTW: Please use the code tag instead of the latex tag for block code.
My main topics are KOMA-Script and other questions related to my packages. If I reply to any other topic or if you've not yet added a minimal working example, please do not expect any further response. And please don't forget to tag examples as code.
Post Reply