I’m facing a problem with sorting a Custom Post Type (CPT) alphabetically in a looper using Themeco’s Pro theme. I’m listing the posts by title in a looper, ordered alphabetically (ascending) using the title field. The sorting works fine for standard letters (A–Z), but it doesn’t handle the extra letters in the Norwegian alphabet correctly: Æ, Ø, and Å.
In the Norwegian alphabet, these letters should appear at the end, in this order: A, B, C, …, X, Y, Z, Æ, Ø, Å. However, the looper sorts them as if they were equivalent to their closest standard letters (e.g., Å is treated as A). Here’s an example of the issue:
Correct Sorting (Desired) : Anna Berg, Bjørn Larsen, …, Zoe Nilsen, Åse Olsen
(Åse should be at the end after Z, Æ, Ø)
Current Sorting (Incorrect): Anna Berg, Åse Olsen, Bjørn Larsen, …, Zoe Nilsen
(Åse is incorrectly placed among the A’s)
Is there a reliable way to fix the alphabetical sorting in a looper to respect the Norwegian alphabet (A–Z, Æ, Ø, Å)? Ideally, I’d like a solution that works both in the front-end looper and the WordPress admin overview, where I’m seeing the same sorting issue. Any suggestions?
Thanks in advance for your help!