Sort List alpha-numerically, ignoring Capitals

The sort list block:

lists_sort

will sort "correctly" (?); items that start with numbers, items that start with capital (uppercase) letters (A-Z), then items that start with lowercase letters (a-z).

Can any of the existing sort blocks be used to sort ignoring capitals?

e.g.
["123.png","Abbc.png","accd.png","baad.png","Bccd.png","Ceef.png"]

instead of
["123.png","Abbc.png","Bccd.png",,"Ceef.png""accd.png","baad.png"]

I am able to do this with functions from js or php, but would be good to use AI2 blocks.

image

Does that downcase the items which start with capitals though ? I want to keep the original items because they are filenames to be fetched from a case sensitive server....:wink:

the comparator will not effect the original list items.

2 Likes

Well done, and thank you :slight_smile:

1 Like

Added to FAQ-Lists

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.