You can clearly see that some models are updated 4 times or so now. Contributes to issue CURA-4606.
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.