[Tex/LaTex] Problem with sorting bibliography alphabetically

natbib

I'm having a problem sorting the bibliography in alphabetical order, I'm using natbib, here is a code overview:

\usepackage[round]{natbib}
\bibliographystyle{plainnat}
\bibliography{allbiblio/allbiblio}

I'm using TeXnicCenter/MiKTeX distribution, on Windows 7.

\documentclass[a4paper,french]{book}
%\usepackage[T1]{fontenc} 
%\usepackage[latin1]{inputenc} 
\usepackage[utf8]{inputenc} 
\usepackage[francais]{babel} 
\usepackage{lipsum} 
\usepackage{graphicx} 
\usepackage{float} 
\usepackage{tabularx,booktabs} 
\usepackage{caption} 
\usepackage{wrapfig} 
\usepackage{multirow} 
\usepackage{pdfpages} \usepackage{amsmath,amsfonts,amssymb,amsthm,epsfig,epstopdf,titling,url,array} 
\usepackage[round]{natbib} 
\begin{document} 
\bibliographystyle{plainnat} 
\bibliography{allbiblio/allbiblio} 
\end{document} 

And part of file allbiblio.bib:

@book{c1r1, 
  title={Should we be using learning styles? What research has to say to practice}, 
  author={Coffield, Frank}, 
  year={2004}, 
  publisher={Learning and Skills Research Centre} 
} 

@book{c1r2, 
  title={The Myers-Briggs Type Indicator: Form G}, 
  author={Briggs, Katharine Cook and Myers, Isabel Briggs}, 
  year={1977}, 
  publisher={Consulting Psychologists Press} 
} 

@book{c1r3, 
  title={Experiential learning: Experience as the source of learning and development}, 
  author={Kolb, David A}, 
  year={2014}, 
  publisher={FT press} 
} 

Best Answer

Well, you asked for "sorting the bibliography in alphabetical order".

If I compile your given code with my current MiKTeX 2.9 distribution, after adding a command \nocite{*} to get a printed bibliography, I get an alphabetical order.

Please see the following MWE (I commented all packages not needed to show the problem):

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{c1r1, 
  title={Should we be using learning styles? What research has to say to practice}, 
  author={Coffield, Frank}, 
  year={2004}, 
  publisher={Learning and Skills Research Centre}, 
} 

@book{c1r2, 
  title={The Myers-Briggs Type Indicator: Form G}, 
  author={Briggs, Katharine Cook and Myers, Isabel Briggs}, 
  year={1977}, 
  publisher={Consulting Psychologists Press}, 
} 

@book{c1r3, 
  title={Experiential learning: Experience as the source of learning and development}, 
  author={Kolb, David A}, 
  year={2014}, 
  publisher={FT press}, 
} 
\end{filecontents*}


\documentclass[a4paper,french]{book}

\usepackage[T1]{fontenc} 
\usepackage[utf8]{inputenc} 
\usepackage[francais]{babel} 

%\usepackage{lipsum} 
%\usepackage{graphicx} 
%\usepackage{float} 
%\usepackage{tabularx,booktabs} 
%\usepackage{caption} 
%\usepackage{wrapfig} 
%\usepackage{multirow} 
%\usepackage{pdfpages} 
%\usepackage{amsmath,amsfonts,amssymb,amsthm,epsfig,epstopdf,titling,url,array} 
\usepackage[round]{natbib} 


\begin{document}
\nocite{*} % <================================================== missing
\bibliographystyle{plainnat} 
\bibliography{\jobname} % <======= to use bib file created with filecontents
\end{document} 

That gives me the following result:

enter image description here

As you can see the entries are sorted: B, C, K

If I missunderstand your question please update your question to clarify your question!

Related Question