I have the following code and can't find out the command to sort my abbreviation list alphabetically.
\documentclass [11pt, a4paper] {article}
\usepackage{acro} %list of abbreviations
\acsetup{first-style=short} %list of abbreviations
\input{abbreviations.tex} %define abbreviations in this file.
\begin{document}
\addcontentsline{toc}{section}{\numberline{}List of Abbreviations}
\acuseall %to make all abbreviations appear in list of abbreviations (formally uses all of them)
\printacronyms[heading=none,include-classes={abbrev},sort=true] % print list of abbreviations
\end{document}
Currently, the compiled document looks like this:
EDIT
Here are some lines from the abbreviations.tex:
%------------------------------------
% DEFINING ABBREVIATIONS
%------------------------------------
\DeclareAcronym{1}{ % every abbreviation must be defined this way
short = {LDL} , % abbreviation shown in the list of abbrev
long = {Low-density lipoprotein} , % long text shown in the list of abbrev
class = {abbrev}
}
\DeclareAcronym{2}{
short = {HDL} ,
long = {High-density lipoprotein},
class = {abbrev}
}
\DeclareAcronym{3}{
short = {RYGB} ,
long = {Roux-en-Y gastric bypass},
class = {abbrev}
}


abbreviations.tex? – egreg Dec 26 '16 at 10:45