Sort profile models case-insensitively

Cast every sorting key to uppercase before doing this. Don't cast to lowercase or there will be problems with characters that don't have lowercase and with Turkish dotted i vs. undotted i.

Fixes #3460.
This commit is contained in:
Ghostkeeper 2018-03-09 11:39:40 +01:00
parent 3550ef80e0
commit d8853b8a98
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A
6 changed files with 9 additions and 9 deletions

View file

@ -55,6 +55,6 @@ class GenericMaterialsModel(BaseMaterialsModel):
item_list.append(item)
# Sort the item list by material name alphabetically
item_list = sorted(item_list, key = lambda d: d["name"])
item_list = sorted(item_list, key = lambda d: d["name"].upper())
self.setItems(item_list)