Latest news 2020-07-03: SmashWords sale (ends 31st July 2020): 50% off crime/SF novel The Private Enemy and 100% off (free!) I’ve Heard the Mermaid Sing.

# Bug Tracker

ID: 88 🔗 Closed (Not a Bug) glossaries 4.15 Windows 7 2015-05-06 04:20:51 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.)