# Sort bibliography in order of appearance

I'm trying to use \bibliographystyle{unsrt} to sort my bibliography in order of appearance. From here I know that I can't mix the biblatex package with \bibliographystyle. However, when I remove biblatex another compile error arises on a different line.

Here's what I have tried...

% BEGIN -- SETUP DOCUMENT (OVERLEAF) --
\documentclass[a4paper,12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[british]{babel}
\usepackage{csquotes}
\bibliographystyle{unsrt}
\DeclareLanguageMapping{british}{british-apa}
\usepackage[pdftex]{graphicx}

\let\cite\parencite
\begin{document}
% END -- SETUP DOCUMENT (OVERLEAF) --

\title{ Machine Learning for 3D Segmentation }
\author{Kendall Weihe}
\date{October 27, 2016}
\maketitle

\printbibliography[title=References]
\nocite{*}

\end{document}


It throws an error at the line \DeclareLanguageMapping{british}{british-apa}

• Of course, if you remove biblatex, \DeclareLanguageMapping{british}{british-apa} is not defined, nor \addbibresource nor \printbibliographyIf you want the equivalent of the unsrt bib style, load biblatex with the [sorting=none] option.  – Bernard Oct 27 '16 at 18:27
• If you want to use biblatex, remove \bibliographystyle{unsrt} and load biblatex with the sorting=none option: \usepackage[backend=biber,style=numeric,sorting=none]{biblatex}. Note that \DeclareLanguageMapping{british}{british-apa} is only necessary (and should probably only be used) with style=apa. – moewe Oct 27 '16 at 22:03
• Any news here? Did you try the suggestions? – moewe Oct 31 '16 at 17:28
• yes, sorry forgot about this. @moewe suggestion worked, thanks! feel free to write an answer – Kendall Weihe Nov 2 '16 at 1:23

You cannot mix BibTeX and biblatex.
In your code remove \bibliographystyle{unsrt} (which is BibTeX language) and load biblatex with sorting=none
\usepackage[backend=biber,style=numeric,sorting=none]{biblat‌​ex}

You will probably not need \DeclareLanguageMapping{british}{british-apa}, which is only necessary if you use the biblatex-apa style.