Jump to content

correct sorting of numbers in album names


Recommended Posts

It would be nice to have the library correctly sort albums with numbers in the title.  Currently they are sorted 1, 10, 11, 2, 3, etc.  This is most relevant for Album names of compilations with volume numbers, but it should apply to numbers inside all text fields.

Link to comment
Share on other sites

PA treats all characters equally and does a 'proper' ASCII sort on them. This means that just like any other text string which starts with "A" comes before anything that starts with "B", similarly anything starting with "1" comes before anything starting with "2". This means that dual characters such "11" (which starts with the character "1") will be sorted before the single character "2". 

A work-around for this which has been used for years for such things as dates, disc numbers, and track numbers is to pad small numeric values out with leading zeros - so rather than naming files as "1. SomeTrack.mp3", "2. AnotherTrack.mp3", "10. LaterTrack.mp3", etc you use "01. SomeTrack.mp3", "02. AnotherTrack.mp3", "10. LaterTrack.mp3".

However for text content (for example, titles of chapters in audiobooks) I agree it would make sense if the List Options screen provided a setting for "Content Aware" sorting of the type you describe. See also another recent thread on the subject:


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.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...