I am writing a document using the memoir class, pdflatex and biber. Now both my Bibliography at the end of the document and the citations in the text sort alphabetically, but I would like the citations to sort by year. How can i achieve this?
In my preamble I have this:
\usepackage[style=authoryear,backend=biber]{biblatex}%
\renewcommand*{\nameyeardelim}{\addcomma\space}
and I have made a config file that looks like this:
\ExecuteBibliographyOptions{dashed=false, block=space, firstinits, maxcitenames=2,maxbibnames=99, sortcites, sorting=nyt, uniquelist=false}
\DeclareFieldFormat[article]{title}{#1\isdot}
\DeclareFieldFormat[incollection]{title}{#1\isdot}
\DeclareFieldFormat{pages}{#1}
\DeclareFieldFormat{postnote}{#1}
\DeclareNameAlias{sortname}{last-first}
\renewbibmacro{in:}{}
\renewbibmacro*{volume+number+eid}{
\printfield{volume}
\setunit*{\addnbthinspace}
\printfield{number}
\setunit{\addcomma\space}
\printfield{eid}}
\DeclareFieldFormat[article]{number}{\mkbibparens{#1}}
As far as I understand the sorting option does half the trick as it changes both bib and cite order. Suggestions?
sorting=nyt, sortcitesare exactly the right options if you want your bibliography sorted by name and then year, and have the citations sorted accordingly. You can usesorting=yntto sort by year, name and title (in that order). Do you want only the citations to be sorted by year and not the bibliography? In that case specify the citation sorting in\ExecuteBibliographyOptions(e.g.sorting=nyt) and use the optional argument to\printbibliographyto declare sorting in the bibliography:\printbibliography[sorting=nty]. – moewe Feb 26 '14 at 12:21