[Tex/LaTex] BibTeX not in appearance order

bibtex

I have a .bib file. I am citing the references in the .bib file. However, the automatic numbering does not follow the same order as their appearance order. I have something like

My first reference is popping up very soon [1]. My second reference is
supposed to be 2, but it is 3 [3].

I am using the IEEE conference paper template, i.e.,

\documentclass[conference]{IEEEtran}

and I am not using any citation package.

My reference section looks like

{\footnotesize
\bibliographystyle{unsrt}
\bibliography{paper}}

How can I fix it?

Best Answer

From the IEEEtran documentation (pg 15):

C. Bibliographies

Bibliographies are most easily (and correctly) generated using the IEEEtran BIBTEX package which is easily invoked via

\bibliographystyle{IEEEtran}
\bibliography{IEEEabrv,mybibfile}

See the IEEEtran BIBTEX package documentation (Section III.) for more information.

Related Question