How can I adapt a sorted list so that it becomes an enumerated sorted list? Here is the sorted list I currently have.
\documentclass{report}
\usepackage{enumitem}
\usepackage{datatool}
\newcommand{\sortitem}[2]{%
\DTLnewrow{list}%
\DTLnewdbentry{list}{label}{#1}%
\DTLnewdbentry{list}{description}{#2}%
}
\newenvironment{sortedlist}{%
\DTLifdbexists{list}{\DTLcleardb{list}}{\DTLnewdb{list}}%
}{%
\DTLsort{label}{list}%
\begin{description}%
\DTLforeach*{list}{\theLabel=label,\theDesc=description}{%
\item[\theLabel] \theDesc }%
\end{description}%
}
\section*{Analysis.}
\begin{sortedlist}
\sortitem{Elementary Analysis--The Theory of Calculus}{Ross}
\sortitem{Analysis of Functions of a Single Variable}{Baggett}
\sortitem{Advanced Calculus and Real Analysis}{Craw}
\end{sortitem}
\end{document}
I would like for this list to be an enumerated list as well. Is that possible, and if so how?