I use a setup in which I have a field authauthor which contains a nomralized name of an author that is supposed to show up in the author index. Getting the name from another field indexed in biblatex I want to use the value of authauthor for sorting as well. So I am looking for something that checks whether the filed sortname has a value and if it does not but authauthor has one, the value of authauthor is copied over to sortname. Can this be doen with biblatex somehow?
\documentclass{scrbook}
\usepackage[
natbib=true,
style=langsci-unified,
citestyle=langsci-unified,
datamodel=langsci, % add authauthor and autheditor as possible fields to bibtex entries
backend=biber,
indexing=cite
]{biblatex}
\begin{filecontents}{bibliography.bib}
@incollection{Steedman89,
authauthor = {Mark Steedman},
author = {Steedman, Mark J.},
pages = {463--504},
sortname = {Mark Steedman},
address = {Cambridge},
booktitle = {Lexical Representation and Process},
editor = {Marslen-Wilson, William},
publisher = {The MIT Press},
title = {Lexical Representation and Process},
year = {1989},
title = {Grammar, Interpretation, and Processing from the Lexicon}}
@incollection{Steedman90,
authauthor = {Mark Steedman},
author = {Steedman, Mark J.},
pages = {463--504},
%sortname = {Mark Steedman},
address = {Cambridge},
booktitle = {Lexical Representation and Process},
editor = {Marslen-Wilson, William},
publisher = {The MIT Press},
title = {Lexical Representation and Process},
year = {1990},
title = {Grammar, Interpretation, and Processing from the Lexicon}}
@incollection{Steedman91,
authauthor = {Mark Steedman},
author = {Steedman, Mark J.},
pages = {463--504},
sortname = {Mark Steedman},
address = {Cambridge},
booktitle = {Lexical Representation and Process},
editor = {Marslen-Wilson, William},
publisher = {The MIT Press},
title = {Lexical Representation and Process},
year = {1991},
title = {Grammar, Interpretation, and Processing from the Lexicon}}
\end{filecontents}
\addbibresource{bibliography.bib}
\begin{document}
\citep{Steedman89,Steedman90,Steedman91}
\printbibliography
\end{document}
The example shows that with the field sortname commented out in the second entry, this item gets sorted wrongly. Somehow sortname should be taken over from authauthor.

langsci.dbx, please? (langsci-unifiedis installed and can be found). On my system I getfile 'langsci.dbx' not found., soauthauthorand friends are not known. – moewe Jan 03 '23 at 06:06authauthorfield. – moewe Jan 03 '23 at 06:14