# BibLatex: right reference order in multiple bibliography lists and wrong reference order in cite

I have several bibliography lists with ynt sorting order each. When I cite references from the list I need [1-4] sorting instead of [1,3,2,4].

\documentclass{report}

\usepackage[defernumbers=true, sorting=ynt,citestyle=numeric-comp]{biblatex}

\begin{filecontents}{bibfile.bib}
@article{Author01,
author = "Author A",
title = "Article A",
journal="J1",
year = "2001"
}
@article{Author02,
author = "Author B",
title = "Article B",
journal="J1",
year = "2002"
}
@article{Author03,
author = "Author C",
title = "Article C",
journal="J1",
year = "2003"
}
@article{Author04,
author = "Author D",
title = "Article D",
journal="J1",
year = "2004"
}
\end{filecontents}

\DeclareBibliographyCategory{A}
\DeclareBibliographyCategory{B}

\begin{document}
I introduce citations from the bib file \cite{Author01,Author03,Author02,Author04}
and it doesn't write [1--4].

\printbibliography[category=A,title={List A}]
\printbibliography[category=B,title={List B}]
\end{document}


I get the following:

Lists are ok for me, the trouble is with the order of references in cite command.

• As I can see in the related topics (e.g. tex.stackexchange.com/questions/273313/…) the solution is in using keywords. I use mendeley and my bib file is being formed automatically. Is there any solution for mendeley or for categories? – Tatiana Vaskovskaya Jun 26 '16 at 8:14
• Hmm.. What a fool I am. I was a bit confused that the field keywords in Mendeley is for author keywords. But I can use it on my own as well. I solved the issue with the help of the solution in the linked topic. – Tatiana Vaskovskaya Jun 28 '16 at 20:08