I'm using TexMaker + BibTex + XeLaTeX and everything was fine, until I noticed that it was ordering the references by the .bib file order instead of the .tex file order. So it starts at [5] instead of [1] because my first citation it's the 5th element in the bib file.
This are the packages which I'm using:
\usepackage{graphicx} % images
\usepackage{fontspec} %font to show accents in xelatex
\usepackage{url} %for urls
\usepackage[portuguese]{babel} %portuguese documment
\usepackage{color} %for text color
I put the references before the end document:
\bibliographystyle{IEEEtran} %for IEEE references style
\bibliography{references}
\end{document}
Also I always do the F1-F11-F1-F1 to compile.
\nocite{*}command in your document? – egreg May 20 '12 at 14:48IEEEtran.bst: The standard IEEEtran BIBTEX style file (unsorted, i.e., references will appear in the order in which they are cited). Recommended for work that is to be submitted to the IEEE. – Marco Daniel May 20 '12 at 14:50\nocite{*} %% This should output the entire bib filecommand hided in my document that was the cause of the wrong order. – RandomGuy May 20 '12 at 14:52