[Tex/LaTex] Reverse enumeration of publications in moderncv

#enumeratebiblatexbibliographiesbibtexmoderncv

I want to enumerate the publications using reverse order, i.e. assuming that I have N publications, the publications in the bottom will be the oldest, and will have number [1] next to them, while the most recent publications will be on the top, and will have number [N] next to them.

Does anyone have an idea how to do this? This is the code I used:

\documentclass[11pt,a4paper,roman]{moderncv}
\moderncvstyle{banking}                             
\moderncvcolor{blue}                               


\renewcommand{\familydefault}{\rmdefault}         

\usepackage[utf8]{inputenc}                       

\usepackage[style=numeric,sorting=ydnt]{biblatex}
\addbibresource{publications.bib}

\usepackage[scale=0.75]{geometry}

\begin{document}
\makecvtitle

\nocite{*}
\printbibliography[title={Publications}]

\end{document}

Thank you.

Best Answer

Here's a slightly simpler way to do it building on this answer.

\documentclass[11pt,a4paper,roman]{moderncv}
\moderncvstyle{banking}                             
\moderncvcolor{blue}                               
\usepackage[utf8]{inputenc}                       
\usepackage[sorting=ydnt]{biblatex}
\addbibresource{biblatex-examples.bib}
\usepackage[scale=0.75]{geometry}
\name{Sa\"{i}d}{Maanan}
\title{CV}
\address{Department of Statistics}{University of Auckland}{Private Bag 92019, Auckland 1142, New Zealand}
\phone[mobile]{+64~(022)~1258~144}                   
\email{s.maanan@auckland.ac.nz}                                                    
\social[linkedin]{smaanan}                        
\social[github]{smaanan}                              

% Reverse numbering in publications list
\newcounter{entrycount}
\AtDataInput{\stepcounter{entrycount}}
\DeclareFieldFormat{labelnumber}{\mkrevbibnum{#1}}
\newcommand{\mkrevbibnum}[1]{\number\numexpr\value{entrycount}+1-#1}

\begin{document}
\makecvtitle
\nocite{sigfridsson,wilde,worman,geer,baez/article}
\printbibliography[title={Publications}]
\end{document}

enter image description here