# Bug Tracker

ID 88 Closed (Not a Bug) glossaries 4.15 Groups not working for sort=def

## Report

When using glossaries with sort=def and style=alttreehypergroup, groups are not recognized any more and the output is broken. Glossaries version: 4.15 This bug was reported on TEX.SX, too (includes images of the expected and actual output): Glossaries: Groups not working

### MWE

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

% WORKING:
% \usepackage[style=alttreehypergroup, symbols, nolong, nosuper, nonumberlist]{glossaries}

% NOT WORKING:
\usepackage[sort=def, style=alttreehypergroup, symbols, nolong, nosuper, nonumberlist]{glossaries}

\glssetwidest[1]{xxxx}
\makeglossaries

\newglossaryentry{firstgroup}{name={firstgroup}, description={\nopostdesc}}
\newglossaryentry{aaa}{name={aaa}, description=abcd, parent=firstgroup}

\newglossaryentry{secondgroup}{name={secondgroup}, description={\nopostdesc}}
\newglossaryentry{bbb}{name={bbb}, description=abcd, parent=secondgroup}

\begin{document}
\printglossaries
\end{document}

## Evaluation

I've put a more detailed response in my answer on TeX.SX, but this is a feature rather than a bug due to the fact that the sort=def key changes the sort key for each entry to a numerical value, so all entries end up in the "Numbers" group. You can get around it by switching to "Option 1" and passing the sort=def to \printnoidxglossary.

## Watch This Report

If you supply your name, it will be used in the email greeting, which provides a more personal message, otherwise you'll just get a generic greeting. If you have previously supplied your name when signing up for notifications, you don't need to resupply it unless you want to change it.

If you have previously subscribed to notifications for this report, you can unsubscribe by clicking on the "Stop Notification" button.

The "Confirm Bug ID" field helps to protect against spambots. Please enter the bug ID (which you can find at the top of this page).

Name: (Optional.)

## Comment

You can append a comment to the report using the form below. Comments are checked first before being added. Any spam or offensive content will be removed first according to this site's Terms of Website Use. Please bear in mind that I develop and maintain free software in my spare time. If you want commerical level support then you can hire a TeX consultant.

The "Confirm Bug ID" field helps to protect against spambots. Please enter the bug ID (which you can find at the top of this page).

Name: (Optional. If provided, it will be shown with the comment.) Message: You can use the following markup: [pre]Displayed verbatim[/pre] [tt]monospace text[/tt] [em]emphasized text[/em] [b]bold text[/b] [url]web address[/url] Ordered list: [ol] [li]first item[/li] [li]second item[/li] [/ol] Unordered list: [ul] [li]first item[/li] [li]second item[/li] [/ul]

Click on the Preview button to preview the message.