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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

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

sort subpages case insensitive


Go to End


2 Posts   886 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