[Tex/LaTex] Bibtex is inverting two reference from same author in the same year

bibtex

The following is the relevant lines from the the main tex file:

\usepackage[round]{natbib}

\begin{document}
\bibliography{References/references}
\bibliographystyle{apa}
\end{document}

And I have two references inside the bibtex file, from the same author and published in the same year:

@article{Author2011a,
author = {Author},
title = {{Title}} 
year = {2011}
}

@article{Author2011b,
author = {Author},
title = {{Title}} 
year = {2011}
}

The problem is when generating the *.bbl file with the bibtex command, the place in the document referencing \citep{Author2011a} shows (Author2011b), and vice versa for the other reference. Same thing inside the *.bbl file.

Anybody knows what can cause this kind of problems?

Best Answer

Well, first there are some missing comas in your bib file and some missing journals too ... In the following MWE I added both ...

Second I changed your used keys in the bib file to Author2011one and Author2011two.

Now you can see that the printed (2011a) and (2011b) in the bibliography are created independent from your given keys in the bib file. If you have two same entrys the bibliography needs to change the printed reference to "used year" + "a" or "used year" + "b" depending on the number of same titles ...

The following MWE

\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{Author2011one,
  author  = {Author},
  title   = {{Title}}, 
  journal = {missing},
  year    = {2011},
}
@article{Author2011two,
  author  = {Author},
  title   = {{Title}}, 
  journal = {missing},
  year    = {2011},
}
\end{filecontents}


\documentclass[letterpaper, 10pt]{article}

\usepackage[round]{natbib}
\usepackage{lipsum}

\begin{document}

\lipsum[1-3] \citep{Author2011two}
\nocite{*}

\bibliographystyle{apa}
\bibliography{\jobname}

\end{document} 

gives you:

resulting bibliography