commit 758792f6d60262534b4f4fdb63ac401360dac724
Author: Thibaut Cuvelier <[email protected]>
Date: Mon Apr 25 03:10:45 2022 +0200
InsetIndex: add a comment.
---
src/insets/InsetIndex.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/insets/InsetIndex.cpp b/src/insets/InsetIndex.cpp
index 3d3a801..72204c0 100644
--- a/src/insets/InsetIndex.cpp
+++ b/src/insets/InsetIndex.cpp
@@ -1379,6 +1379,8 @@ docstring InsetPrintIndex::xhtml(XMLStream &,
OutputParams const & op) const
// whatever, but....
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());
Layout const & lay = bp.documentClass().htmlTOCLayout();
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs