triad Posted May 4, 2019 Share Posted May 4, 2019 When I sort all songs by Artist name, if an artist have a name starting with a lower case letter, it will put that artist to the end of list, instead their actual alphabetical order. Link to comment Share on other sites More sharing options...
w3wilkes Posted May 5, 2019 Share Posted May 5, 2019 The problem here is that the hex value for upper and lower case is different. Example is the letter "A" is hex "41" but the letter "a" is hex "61". For title sorting it would seem that case should be the same for all characters so that "A" and "a" are the same. This can be accomplished by or'ing all characters with a hex "20". This would make all characters lower case for sorting purposes so that "A" and "a" would sort in the same collating sequence. This is just a basic example and doesn't take into account UTF-16. It may be that the sorting function @maxmp is using has an option to normalize characters so that case is the same for sorting purposes. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.