In the following MWE, I expect reference "B" to appear before "A" in the reference list, because sortyear should take priority over year. But I can't get that to happen after much tinkering... I've read this and this questions and the corresponding section of biblatex manual without much help.
\documentclass{article}
\usepackage[
backend=bibtex,
defernumbers=true,
sorting=xxx,
]{biblatex}
\begin{filecontents}[overwrite]{mwe.bib}
@article{A,
title = {A},
year = {1111},
sortyear = {2222}
}
@article{B,
title = {B},
year = {2222},
sortyear = {1111}
}
\end{filecontents}
\addbibresource{mwe}\nocite{*}
\DeclareSortingTemplate{xxx}{
\sort{
\field{sortyear}
\field{year}
}
}
\begin{document}
\printbibliography[resetnumbers=true]
\end{document}
backendtobiberand add the .bib extension to\addbibresourceit does produce expected results for me. – gusbrs Apr 25 '22 at 17:47\DeclareSortingTemplate? I need other features of bibtex... – jessexknight Apr 25 '22 at 17:49bibtexbackend: "Sorting is global and is limited to us-ascii ordering". Which doesn't say anything about sorting templates. – gusbrs Apr 25 '22 at 17:55biberfor now. – jessexknight Apr 25 '22 at 18:01