InsetIndex: add a comment.

This commit is contained in:
Thibaut Cuvelier 2022-04-25 03:10:45 +02:00
parent 4a62c08e61
commit 758792f6d6

View File

@ -1379,6 +1379,8 @@ docstring InsetPrintIndex::xhtml(XMLStream &, OutputParams const & op) const
// whatever, but.... // whatever, but....
return docstring(); return docstring();
// Sort the entries, first on the main entry, then the subentry, then the subsubentry,
// thanks to the implementation of operator<.
stable_sort(entries.begin(), entries.end()); stable_sort(entries.begin(), entries.end());
Layout const & lay = bp.documentClass().htmlTOCLayout(); Layout const & lay = bp.documentClass().htmlTOCLayout();