This is a follow up question to these two (similar story, just for latexmk):
Biblatex order of entries in a multi-citation
Multiple citations: citation order different to bibliography order
I have the following MWE
\documentclass{article}
\usepackage[
backend=biber, sortcites=true,
sorting=ynt,bibstyle=authoryear -comp,
citestyle=authoryear -comp
]{biblatex}
\bibliography{mybib}
\begin{document}
\parencite{Sample:01,Sample:02}
\begin{refcontext}[sorting=nyt]
\printbibliography
\end{refcontext}
\end{document}
and a bib file that looks like this
@Article{Sample:01,
title = {Some Title},
author = {Zhu, Zhang z.},
year = {1900},
pages = {1-2},
journal = {Really Cool Journal},}
@Article{Sample:02,
title = {Different Title},
author = {Abe, Alp A.},
year = {2000},
pages = {3-4},
journal = {Other Cool Journal},}
I am using Miktex and latexmk to compile this. I want that citations are sorted withing the text using ynt in the bibliography I want nyt. I follow @Moewe in the related question. When watching pdf updates while latexmk runs, I observe the following:
- First run: no citations picked up
- Second run: intext citation order correct, no bibliography
- Third run: citations correct and bibliography correct
- Fourth run: in text citations sorted like the bibliography.
So in the end I end up with this result:
Why does the fourth run happen? Why is the option of refcontext applied globally rather than locally?

biblatexbugtracker https://github.com/plk/biblatex/issues and mention that you asked here with no solution. – moewe Mar 19 '17 at 17:17latexmkis irrelevant to the question. – moewe Mar 19 '17 at 17:17biblatexand Biber (2.7, 3.7 respectively)? – moewe May 23 '17 at 07:08