How to sort the in-text citations by year, but those of the bibliography by name?
\documentclass{MastersDoctoralThesis} % Online template
\usepackage[backend=bibtex,style=authoryear-comp, natbib=true, maxcitenames=1, url=false, doi=false, sorting=ynt]{biblatex}
\bibliography{mybib}
mybib is a bib file that contains:
@ARTICLE{neu1984,
author = {{Neugebauer}, G. and {Habing}, H.~J. and {van Duinen}, R.},
year = 1984}
@ARTICLE{kes1996,
author = {{Kessler}, M.~F. and {Steinz}, J.~A. and {Anderegg}, M.~E.},
year = 1996}
MWE:
\begin{document}
\citealt{neu1984,kes1996}
\printbibliography
\end{document}
The result is sorted chronologically in-text:
and in the bibliography, it appears sorted chronologically, but i would like it in alphabatical order:
1) I tried, as suggested in other solutions:
\begin{refcontext}[sorting=ny]
\printbibliography
\end{refcontext}
It says:
! LaTeX Error: Environment refcontext undefined.
2) I tried:
\printbibliography[sorting=ny]
It says:
! Package keyval Error: sorting undefined.