Hi, I am trying to create a Pages section in the panel sorted by “sortBy”.
Somehow I do not get this to work with German umlauts: “Br” is always appearing before “Bä”, while, normally in German, “Bä” should appear directly after “Ba”.
I read the reference, in particular #10 in
So I set the locale in config.php like this 'locale' => 'de_DE.UTF-8'
and in the blueprint I have sortBy: title asc SORT_LOCALE_STRING
Am I missing something? I am thankful for any help here!
I think the note in the plugin’s readme just means that the plugin doesn’t support manual sorting by the user (with drag & drop) as it’s just a pages display section.
From your issue description I’d guess your site is a single-language site, right? I debugged this and found a bug that made the API ignore the configured locale for single-language sites. This bug is fixed by this PR.
I can reproduce this as well, but this doesn’t seem like something we can solve in Kirby (we only use native PHP functions for the actual sorting). Looks like some combination of strange PHP behavior and macOS to me.