% arara: pdflatex
% arara: makeglossaries
% arara: pdflatex
\documentclass{article}

\usepackage[stylemods=tree,style=alttree]{glossaries-extra}

\newglossaryentry{sample}{name={sample},description={an example}}
\glssetwidest{sample}

\begin{document}
\printunsrtglossary
\end{document}
