0

The order of my citations in my original document text is messed up. For example, my text is like this:

Hello World is the best program \cite{helloWorld} and I use Latex \cite{latex}.....
....this is a new feature \cite{new}

while the citations are like this:

Hello World is the best program [11] and I use Latex [8].....
....this is a new feature [1]

and then in the .bib file I have some citations:

@article{speech,
    author    = "name",
    title     = "Title",
    pages = "13",
}

The citation where it shows [1] in the document is the one that I typed into my .bib file before typing anything else. However, now I have fixed the order of all citations in my bib file and arranged them in the order of how they should appear in the text. But still, they aren't appearing from number 1 in the beginning. How can i fix this? I have already tried recompling overleaf many times.

\usepackage[style=numeric,language=english, maxbibnames=99, giveninits=true]{biblatex}
...
\addbibresource{sample.bib}
...
  %\bibliographystyle{unsrt}
\bibliographystyle{ieeetr}
  %\bibliography{sample}
  \printbibliography

\end{document}

x89
  • 163

1 Answers1

2

You need to set the option sorting to none:

\usepackage[style=numeric, sorting=none]{biblatex}
DG'
  • 21,727
  • That doesn't seem to work – x89 Nov 19 '20 at 22:23
  • Delete all .aux files – DG' Nov 19 '20 at 22:29
  • I'm using overleaf and there are no aux files. I also tried removing the unused bib but it doesnt work either. Also tried copy pasting everything to a new project folder and files but still the same issue – x89 Nov 19 '20 at 22:30