# Is the biblatex toggle behavior expected or should the result stabilize [closed]

In my previous question an issue arose due to the use of multiple bibliographies in the given solution, that I extended here.

So the issue is that the numbering in the second bibliography toggles between two states, shown below:

Every run of pdflatex toggles between these two states. Is it a glitch? I haven't tested further, but as Andrew mentioned in the comments the problem may be the use of defernumbers. However, without them the second bibliography stays unsorted.

Is it possible to stabilize the result? or is there a problem somewhere else when using the two bibliographies?

Edit. This is a minimal version of the example below that also produces the same toggling behavior.

\documentclass{article}
% include bib from full example here
\usepackage[backend=biber,bibencoding=utf8,citestyle=numeric,defernumbers=true]{biblatex}

\bibliography{ref2}

\begin{document}
\cite{J2010, Z2010, Z2007, C2009, T2010}
\printbibliography
\newrefsection
\nocite{*}
\end{document}


Original code for pictures:

\documentclass{article}

\usepackage{filecontents}
\begin{filecontents}{ref2.bib}
@INPROCEEDINGS{C2009,
author = {C H.},
title = {M},
booktitle = {C},
year = {2009},
month = oct
}
@INPROCEEDINGS{J2010,
author = {J O.},
title = {L},
booktitle = {P},
year = {2010}
}
@ARTICLE{T2010,
author = {X B.},
title = {E},
year = {2010},
month = jun,
journal = {I}
}
@ARTICLE{Z2010,
author = {B},
title = {L},
year = {2010},
volume = {19},
month = feb,
journal = {I}
}
@ARTICLE{Z2007,
author = {B},
title = {H},
year = {2007},
month = jan,
journal = {I}
}
@ARTICLE{K2013,
author = {K O.},
title = {B},
year = {2013},
month = feb,
journal = {I},
keywords = {publication}
}
@INPROCEEDINGS{K2012,
author = {K  O.},
title = {S},
booktitle = {I},
year = {2012},
month = jul,
keywords = {publication}
}
@ARTICLE{M2011,
author = {M O.},
title = {M},
year = {2011},
month = jun,
journal = {L},
keywords = {publication}
}
@INPROCEEDINGS{M2010,
author = {M O.},
title = {S},
booktitle = {A},
year = {2010},
month = aug,
keywords = {publication}
}
@ARTICLE{M2012,
author = {M O.},
title = {S},
year = {2012},
month = jul,
journal = {I},
keywords = {publication}
}

\end{filecontents}

\usepackage[backend=biber,style=ieee,bibencoding=utf8,sorting=cymat,defernumbers=true]{biblatex}

\DeclareSortingScheme{ymdtn}{
\sort{
\field{presort}
}
\sort[final]{
\field{sortkey}
}
\sort[direction=descending]{
\field{sortyear}
\field{year}
\literal{9999}
}
\sort[direction=descending]{
\literal{99}
}
\sort[direction=descending]{
\literal{99}
}
\sort{
\field{sorttitle}
}
\sort[direction=descending]{
\literal{9999}
}
\sort{
\name{sortname}
\name{author}
\name{editor}
\name{translator}
\field{sorttitle}
\field{title}
}
}
% sort in citation order and then by year/month, and author and title
\DeclareSortingScheme{cymat}{
\sort{\citeorder}
\sort{
\field{sortyear}
\field{year}
\literal{0}
}
\sort{
\literal{0}
}
\sort[direction=descending]{
\literal{99}
}
\sort{
\name{sortname}
\name{author}
\name{editor}
\name{translator}
\field{sorttitle}
\field{title}
}
}

\bibliography{ref2}

\pagestyle{empty}

\begin{document}
\cite{J2010, Z2010, Z2007, C2009, T2010}
\printbibliography%[sorting=cymat] % removed the sorting from here to the package
\newrefsection
\nocite{*}

The example can be minimalised to \usepackage[backend=biber,bibencoding=utf8,citestyle=numeric,defernumbers=true]‌​{biblatex} and a sort scheme with just \citeorder. –  Andrew Swann Mar 4 '13 at 7:56