0
I’m making a list of acronyms in latex, more specifically I’m using overleaf for this...
I have a problem, when I create the list of acronyms it is coming disorderly, appears in order of citation in the text and not in alphabetical order
\usepackage{nomencl}
\makeatletter
\renewcommand{\nomname}{\pretextualchapter{Lista de Siglas}\@starttoc{lsg}}
\newcommand{\sigla}[2]{{\addcontentsline{lsg}{sigla}{\numberline{#1}{#2}}}#1}
\newcommand{\l@sigla}[2]{
\vspace{-0.75cm}
\leftskip 0em
\parindent 0em
\@tempdima 5em
\advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
{\normalfont #1}\hfil\nobreak\par}
\makeatother