# Wrong alphabetic order for Norwegian bibliography with biblatex

In Norwegian, aa is an (obsolete) alternative spelling of å, but it is still very commonly used in names. In bibliographies, it should as a result be alphabetized as if it said å (cf. Wikipedia). In biblatex, however, it is alphabetized under a. How can I fix this? In the MWE below, the entry Aasen should in fact follow Årst, since Aasen should be treated as Åsen.

\documentclass{article}
\usepackage{polyglossia}
\setdefaultlanguage{nynorsk}
\usepackage[style = authoryear, language = nynorsk]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{aasen1864,
AUTHOR = "Ivar Aasen",
TITLE = "Norsk Grammatik",
YEAR = "1864"}
@book{aarst2010,
AUTHOR = "Ole Martin Årst",
TITLE = "Playing soccer is cool!",
YEAR = "2010"}
\end{filecontents}
\begin{document}
\nocite{*}
\printbibliography
\end{document}


-
Are there any occurrences of aa that are not replacements of å? (You might get into trouble with Aachen/Aabenraa thingy mentioned in Wikipedia.) Your best bet is probably manually using sortname. Copy-pasting the author to sortname and replacing aa with å can be done with Biber's mapping features, but this will sort Aachen under Åchen (probably wrong) and might not work particularly well if you play around with useauthor=false a bit. (I'm not sure whether the upcoming multiscript version 3.0 of biblatex could be of any help here). –  moewe Mar 10 '14 at 17:04
@moewe If a Scandinavian name begins in Aa-, it should always be alphabetized as Å-. If there's a foreign name beginning in Aa-, it should not (Aachen and Aabenraa are cities, btw, and wouldn't appear in a bibliography). I guess that would apply to Finnish names like Paavo Aaltonen. So you might be right that using sortname is the way to go here. –  Sverre Mar 10 '14 at 17:12
But actually, using sortname = Ivar Åsen doesn't yield the correct result either, because biblatex will treat Å as a kind of A. I will open a new question about this. –  Sverre Mar 10 '14 at 17:17
Actually, I found the answer here: heim.ifi.uio.no/dag/latex-links/biblatex-guide.pdf. I need to add sortlocale = nb_NO. –  Sverre Mar 10 '14 at 17:23

Adding sortlocale = nn_NO (nn for Norwegian nynorsk, nb for Norwegian bokmål) as a package option will ensure that Aa is treated as Å, and that Å is alphabetized last. Cf. the University of Oslo’s Local guide to biblatex.

\documentclass{article}
\usepackage{polyglossia}
\setdefaultlanguage{nynorsk}
\usepackage[style = authoryear, language = nynorsk, sortlocale = nn_NO]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{aasen1864,
AUTHOR = "Ivar Aasen",
TITLE = "Norsk Grammatik",
YEAR = "1864"}
@book{aarst2010,
AUTHOR = "Ole Martin Årst",
TITLE = "Playing soccer is cool!",
YEAR = "2010"}
@book{lennon1975,
AUTHOR = "John Lennon",
TITLE = "I like to play the guitar",
YEAR = "1975"}
\end{filecontents}