Case insensitive sorting

Robby Stephenson robby at periapsis.org
Wed May 3 02:59:17 BST 2023


On Tue, May 2, 2023 at 4:57 PM Bill Gee <bgee at campercaver.net> wrote:

> Is there a way to produce reports where the sorting is case INsensitive?
>

The sorting uses XSL which is language dependent, and for english, at
least, seems to default to what you note, that lower-case is sorted after
upper-case. https://www.w3schools.com/xml/ref_xsl_el_sort.asp

I'll see if I can find some sort of solution or option. In the mean-time,
if you make a copy of the Group_View.xsl file in the report-templates
folder, and edit line 153 or thereabouts to change
    <xsl:sort lang="$lang" select="@title"/>
to
    <xsl:sort lang="$lang" select="translate(@title,
                                             'abcdefghijklmnopqrstuvwxyz',

 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
that will convert all the lower-case characters to upper-case before
sorting. Obviously, that only works for the 26 ascii characters represented
there, but at least it's a workaround.

Robby
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/tellico-users/attachments/20230502/449d3bbb/attachment.htm>


More information about the tellico-users mailing list