Jump to content

Issue when I sort songs by Artist name


triad

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...