Hi I would like to format my bibliography. I want the names to be arranged as follows: Last name (A), First name (A), Last name (B), First name (B). But for me it looks like this:

My code is
\usepackage[
sorting=nty,
citestyle=authoryear,
backend=biber,
bibstyle=authoryear,
autolang=hyphen,
maxbibnames=99
]{biblatex}
\renewcommand*{\nameyeardelim}{\addcomma\space}
\DeclareNameAlias{sortname}{family-given}as suggested in Alan's link should do what you want. If it does not, you need to show us a compilable example document that reproduces your status quo (and not just a few code snippets). – moewe Jul 21 '22 at 15:05citestyle=authoryear, bibstyle=authoryear,is equivalent to the shorter and arguably clearerstyle=authoryear,.sorting=nty,sorts by name-title-year and is a debatable choice for an otherwise author-year citation/bibliography setup (a work called "A" published in 2022 will be sorted before "B" published in 2020 - but your readers only know author and year from the citation labels, not the title).nameyeardelimis a context-sensitive delimiter and would better be redefined with that interface:\DeclareDelimFormat{nameyeardelim}{\addcomma\space}– moewe Jul 21 '22 at 15:07