Re: How to make the OpenCms Explorer sort file names case-insensitively (like it does with titles)?

Ramon Gavira Sáenz via opencms-dev <[email protected]> Mon, 27 Oct 2025 08:43:59 +0000
Newsgroups gmane.comp.cms.opencms.devel
Message-ID <DB9PR05MB839648ADC4A21BD3CDB1A8D0E2FCA@DB9PR05MB8396.eurprd05.prod.outlook.com>
--===============6875310329726649974==
Content-Language: es-ES
Content-Type: multipart/alternative;
	boundary="_000_DB9PR05MB839648ADC4A21BD3CDB1A8D0E2FCADB9PR05MB8396eurp_"

--_000_DB9PR05MB839648ADC4A21BD3CDB1A8D0E2FCADB9PR05MB8396eurp_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Hi all,
Just a quick follow-up to my own question: after investigating further, we=
=92ve confirmed that this behavior cannot be changed via configuration alon=
e.
To address the issue, we=92ve submitted a Pull Request<https://github.com/a=
lkacon/opencms-core/pull/825> to the OpenCms GitHub repository with a propo=
sed fix that enables case-insensitive sorting by file name in the Explorer =
view. The change ensures consistency with how titles are sorted and improve=
s usability when browsing large content folders.
Thanks to everyone who reached out or looked into it!
Best regards,
Ram=F3n Gavira S=E1enz
Saga Soluciones Tecnol=F3gicas

________________________________
De: opencms-dev <[email protected]> en nombre de Ramon Gavira=
 S=E1enz via opencms-dev <[email protected]>
Enviado: mi=E9rcoles, 15 de octubre de 2025 18:21
Para: Lista correo OpenCms <[email protected]>
Cc: Ramon Gavira S=E1enz <[email protected]>
Asunto: [opencms-dev] How to make the OpenCms Explorer sort file names case=
-insensitively (like it does with titles)?

Hi,
In my OpenCms 19 installation, I=92ve noticed that the Explorer (content br=
owser under .content/...) sorts items differently depending on the column:

  *
When sorting by Title, the order is case-insensitive, which feels natural.
  *
But when sorting by Name, the order is case-sensitive, so files like appear=
 A* - B* -  Z* - a*  - b*... z*

Is there any way to configure the Explorer so that sorting by Name also ign=
ores case?
Does this depend on the database collation, the Solr index, or is it handle=
d internally by the workplace UI? I have tried changing type of filename fr=
om  String to text_general but it doesn't work
Thanks in advance,
- Ram=F3n G.



--_000_DB9PR05MB839648ADC4A21BD3CDB1A8D0E2FCADB9PR05MB8396eurp_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div style=3D"margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Apto=
s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s=
ize: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
Hi all,</div>
<div style=3D"margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Apto=
s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s=
ize: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
Just a quick follow-up to my own question: after investigating further, we=
=92ve confirmed that this behavior cannot be changed via configuration alon=
e.</div>
<div style=3D"margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Apto=
s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s=
ize: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
To address the issue, we=92ve submitted a <b><a title=3D"https://github.com=
/alkacon/opencms-core/pull/825" href=3D"https://github.com/alkacon/opencms-=
core/pull/825">Pull Request</a></b>&nbsp;to the OpenCms GitHub repository w=
ith a proposed fix that enables case-insensitive
 sorting by file name in the Explorer view. The change ensures consistency =
with how titles are sorted and improves usability when browsing large conte=
nt folders.</div>
<div style=3D"margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Apto=
s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s=
ize: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
Thanks to everyone who reached out or looked into it!</div>
<div style=3D"margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Apto=
s_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-s=
ize: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
Best regards,<br>
<b>Ram=F3n Gavira S=E1enz</b><br>
<i>Saga Soluciones Tecnol=F3gicas</i></div>
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" clas=
s=3D"elementToProof">
<br>
</div>
<hr style=3D"display: inline-block; width: 98%;">
<div class=3D"elementToProof" id=3D"x_divRplyFwdMsg">
<div style=3D"direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos=
_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb=
(0, 0, 0);" class=3D"elementToProof">
<b>De:</b>&nbsp;opencms-dev &lt;[email protected]&gt; en nomb=
re de Ramon Gavira S=E1enz via opencms-dev &lt;[email protected]&gt;<=
br>
<b>Enviado:</b>&nbsp;mi=E9rcoles, 15 de octubre de 2025 18:21<br>
<b>Para:</b>&nbsp;Lista correo OpenCms &lt;[email protected]&gt;<br>
<b>Cc:</b>&nbsp;Ramon Gavira S=E1enz &lt;[email protected]&gt=
;<br>
<b>Asunto:</b>&nbsp;[opencms-dev] How to make the OpenCms Explorer sort fil=
e names case-insensitively (like it does with titles)?</div>
<div style=3D"direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos=
_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb=
(0, 0, 0);" class=3D"elementToProof">
&nbsp;</div>
</div>
<div style=3D"direction: ltr; margin-top: 1em; margin-bottom: 1em; font-fam=
ily: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sa=
ns-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
Hi,</div>
<div style=3D"direction: ltr; margin-top: 1em; margin-bottom: 1em; font-fam=
ily: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sa=
ns-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
In my <b>OpenCms 19</b>&nbsp;installation, I=92ve noticed that the <i>Explo=
rer</i>&nbsp;(content browser under
<code>.content/...</code>) sorts items differently depending on the column:=
</div>
<ul style=3D"direction: ltr;" data-end=3D"707" data-start=3D"474">
<li style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, C=
alibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div style=3D"direction: ltr; margin-top: 1em; margin-bottom: 1em;" role=3D=
"presentation">
When sorting by <b>Title</b>, the order is <b>case-insensitive</b>, which f=
eels natural.</div>
</li><li style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontServi=
ce, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div style=3D"direction: ltr; margin-top: 1em; margin-bottom: 1em;" role=3D=
"presentation">
But when sorting by <b>Name</b>, the order <b>is case-sensitive</b>, so fil=
es like appear A* - B* -&nbsp; Z* - a*&nbsp; - b*... z*&nbsp;</div>
</li></ul>
<div style=3D"direction: ltr; margin-top: 1em; margin-bottom: 1em; font-fam=
ily: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sa=
ns-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
Is there any way to configure the Explorer so that sorting by <i>Name</i>&n=
bsp;also <b>
ignores case</b>?<br>
Does this depend on the database collation, the Solr index, or is it handle=
d internally by the workplace UI? I have tried changing type of filename fr=
om&nbsp; String to text_general but it doesn't work</div>
<div style=3D"direction: ltr; margin-top: 1em; margin-bottom: 1em; font-fam=
ily: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sa=
ns-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
Thanks in advance,<br>
- Ram=F3n G.</div>
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" clas=
s=3D"elementToProof">
<br>
</div>
<div class=3D"elementToProof" id=3D"x_divRplyFwdMsg"></div>
<div style=3D"direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos=
_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb=
(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div class=3D"elementToProof" id=3D"x_x_Signature"></div>
</body>
</html>

--_000_DB9PR05MB839648ADC4A21BD3CDB1A8D0E2FCADB9PR05MB8396eurp_--

--===============6875310329726649974==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KVGhpcyBtYWls
IGlzIHNlbnQgdG8geW91IGZyb20gdGhlIG9wZW5jbXMtZGV2IG1haWxpbmcgbGlzdApUbyBjaGFu
Z2UgeW91ciBsaXN0IG9wdGlvbnMsIG9yIHRvIHVuc3Vic2NyaWJlIGZyb20gdGhlIGxpc3QsIHBs
ZWFzZSB2aXNpdApodHRwczovL2xpc3RzLm9wZW5jbXMub3JnL21haWxtYW4vbGlzdGluZm8vb3Bl
bmNtcy1kZXYKCgoK

--===============6875310329726649974==--