Uwe Siart
unread,Sep 2, 2012, 8:29:14 AM9/2/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hy all,
I try to implement a bibliography in chronologically descending order.
Therefore I declared a sorting scheme in the order "year descending",
"month descending", "day descending", "name", "title". However, in the
following example April is ranged before August. Any hint what I did
wrong? Seems like ISO-date is not treated equivalent to the fields day,
month, year.
Thanks
Uwe
% --------------------
\begin{filecontents}{bb.bib}
@Article{author12:first,
author = {First author},
title = {First title},
journaltitle = {First journal},
date = {2012-08-01},
}
@Article{author12:second,
author = {Second author},
title = {Second title},
journaltitle = {Second journal},
day = {1},
month = {4},
year = {2012},
}
@Article{author12:third,
author = {Third author},
title = {Third title},
journaltitle = {Third journal},
date = {2012-02-01},
}
\end{filecontents}
\documentclass{article}
\usepackage[english]{babel}
\usepackage[autostyle]{csquotes}
\usepackage[backend=biber,
style=numeric,
sorting=ydmdddnt,
dateabbrev=false,
babel=other]{biblatex}
\addbibresource{bb.bib}
\DeclareSortingScheme{ydmdddnt}{
\sort{
\field{presort}
}
\sort[final]{
\field{sortkey}
}
\sort[direction=descending]{
\field{year}
}
\sort[direction=descending]{
\field{month}
}
\sort[direction=descending]{
\field{day}
}
\sort{
\field{journaltitle}
}
\sort{
\name{author}
\name{editor}
}
\sort{
\field{title}
}
}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
% --------------------