GNOME Bugzilla – Bug 344544
Table of contents sort order should be case-insensitive
Last modified: 2018-05-22 12:41:26 UTC
It appears that the sort order in a yelp table of contents is case-sensitive. Looking at the list of documents under Accessories, bzip, gcalctool, and gedit come after Zenity. This isn't what a user might expect. (I don't know if bzip should be in this category, and I'm not entirely sure about having manual titles begin with a lowercase letter, but I still think this should be fixed.)
Yeah, the sorting happens inside XSLT (lines 130 and 144 of toc2html.xsl). In libxslt, xsl:sort always gives you basic ("C" locale) sorting. See bug #152501. Doing proper locale-dependant sorting would be difficult in XSLT. Even case-insenstive sorting for western language isn't trivial once you step outside of ASCII. The best solution, I think, is to leverage the sorting routines we have access to in C, and sort the entries as we add them. Then we'd remove the xsl:sort elements from toc2html.xsl. (I also think it shouldn't be as big of an issue as it turns out to be (at least in English), because lowercase titles are evil.)
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/yelp/issues/14.