# References not ordered [closed]

[2] is my third citation, and others looks like this.

I expect something like [3][4][5][6][7][8]

I use jabref. How could I resolve this?

I am aware of this How to get sequential references in my paper? however I haven't gotten it. Someone could give more details to fix this. [svjour] is a springer class

\begin{filecontents}{magenta.eps}
gsave
newpath
20 20 moveto
20 220 lineto
220 220 lineto
220 20 lineto
closepath
2 setlinewidth
gsave
.4 setgray fill
grestore
stroke
grestore
\end{filecontents}
\RequirePackage{fix-cm}
\documentclass[twocolumn]{svjour3}          % twocolumn
\smartqed
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{txfonts}
\usepackage{mathdots}
\usepackage{epstopdf}
%\usepackage{cite}
\usepackage[linesnumbered, ruled]{algorithm2e}
\usepackage{lscape}
\usepackage{longtable}

\begin{document}

\title{How X affects Y}
\maketitle

\bibliography{ref}
\end{document}


For example, this is the first three of the citations above in the ref.bib file (ref.bib is in the same folder with the .tex file) Please note: I observed the citations are ordered in the output the same way they are ordered in the .bib file. Also, entries in ref.bib is ordered alphabetically. I would like to order them in "chronologically" in terms of its position of citation. A sample content of the .bib file is shown below. There are a few references (not from the ones cited) in between (but I have tried to conserve space)

@InProceedings{ade...,
Title                    = {deter XXXXXXXXXXXXX},
Author                   = {Ade, xxx and xxxxx},
Booktitle                = {XXXXXXXXXXXX},
Year                     = {2001},
Organization             = {XXX},
Pages                    = {1--3}
}
@Article{baj...,
Title                    = {Acoustic xxxxx},
Author                   = {Baj, xxxx and xxx, xxxx},
Journal                  = {Journal of xxxxxxx},
Year                     = {2011},
Number                   = {1},
Pages                    = {82--92},
Volume                   = {72},

@InProceedings{gui....,
Title                    = {Energy xxxxxx},
Author                   = {gui, x and xxx, x},
Booktitle                = {International Conference on xxxxxx },
Year                     = {2011}
}

Publisher                = {XXXXX}
}


Thanks

## closed as unclear what you're asking by user36296, Bobyandbob, TeXnician, Stefan Pinnow, Phelype OleinikFeb 18 '18 at 16:51

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• For ordering your citation you could use the cite-package. – crixstox Aug 3 '16 at 7:54
• This comes probably from your references being sorted alphabetically. If you use 'biblatex' you can pass the option 'sorting=none' to the package so that the references are simply put in the order they are cited. – Enno Aug 3 '16 at 8:01
• I have the .bbl file. Although, I use jabref, how do I pass the command. Thanks @Enno – Abdulhameed Aug 3 '16 at 8:10
• To get sorted refs. they all need to be in the argument to a single \cite: \cite{RefA,RefB, ...}. – Joseph Wright Aug 4 '16 at 5:54
• That edit was not helpful at all. – Johannes_B Feb 18 '18 at 10:18