I have the sorting like this:
objects= col.all_objects[:]
objects.sort(key=lambda x: x.name.upper(), reverse=False)
I’ve used .upper()
because blender’s sort is case-insensitive. But in the same time non-Latin sorting is case-sensitive, so I get wrong sorting with .upper()
in non-Latin object names:
Console output:
Other nasty thing that Blender uses case-sensitive when sorts name.00x things:
which makes sorting even more painful!
How it is supposed to sort objects to match them with Blender’s internal sorting?