Sorting a collection list Alphabetically: odd behavior related to capitalization

I’m experiencing some odd behavior when sorting a collection list of text elements by “Name: Alphabetically A-Z” as it relates to Capitalization.

This is a client list so it’s important that they’re truly listed alphabetically. (Target should be above TDW, and eSSENTIAL should not be at the end of the list.)

Direct link to page on staging: https://anaaimm.webflow.io/membership/member-companies

Read-only: Webflow - AIMM

This is a bug. Take a look at this topic for a workaround.

1 Like

Thanks Jeff, I implemented that workaround for now. Really appreciate you!

1 Like

I had the bright idea to sort on the slug (since it’s lower case and matches my names), but alas it’s not available as a sort field…

Has this bug been fixed? Or are we still expected to use a workaround?

Hi Aya, it’s not technically a bug, it’s effectively sorting based on the character value in unicode / ascii. String sorting is tricky because different locales have different sorting rules.

The way I used to resolve this was to have a separate Sorted name field for sorting that’s all-lowercased. That’s easy and Webflow-friendly but it’s inconvenient to admin.

With localization I wanted a more locale-aware, and so I’ve built this into the SA5 advanced sorting module.

Here’s a demo;

And the lib docs;