Jump to content

Issue when I sort songs by Artist name


Recommended Posts

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...