Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

sort subpages case insensitive


Go to End


2 Posts   1266 Views

Avatar
ivo

Community Member, 19 Posts

22 May 2012 at 9:17pm

Hi,
could it be that the "sort sub-pages" option, that appears on right click on a parent-page, sorts case sensitive?

I have pages with upper and lowercase initials and it sorts with uppercase first:
like so:

A page
B page
C page
a page
b page
c page
Ö page

How can i make it sort case insensitive like:

A page
a page
B page
b page
...

Any hint appreciated!

Avatar
ivo

Community Member, 19 Posts

25 May 2012 at 3:10am

Seems to be a Mysql "feature", i guess it depends on the collation.

In the frontend you could solve it via: order by UPPER(title)

In the backend this might be an option: http://www.ssbits.com/tutorials/2011/custom-sorting-in-the-cms-sitetree/ combined with the UPPER command
but i didnt tried that