Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Wrong sorting of discs in track listing of tag view
#1
If you have a multi-disc album, and more than 9 discs, then they are sorted in the wrong way.
For instance, first album1, then 10, 11, 12, until 19, then 2, and so on.

The correct behaviour should be 1 to last in their natural order.

[Image: disc-sorting.jpg]
Reply
#2
I'm not sure that anything constrains the disc number value to be numeric but I'll leave the resolution to Tim.

Meanwhile, the traditional solution to this dilemma is to number a sequence of items 01, 02, ..., 09, 10, 11, ....

Regards,
Kent
Reply
#3
(09-09-2020, 08:31 PM)moodenigo Wrote: If you have a multi-disc album, and more than 9 discs, then they are sorted in the wrong way.
For instance, first album1, then 10, 11, 12, until 19, then 2, and so on.

The correct behaviour should be 1 to last in their natural order.

[Image: disc-sorting.jpg]

How are the tracks numbered in the file system?

Here's an example from one of my multi-disc albums.

Code:
pi@rp3:~ $ ls -l "/mnt/NAS/FLAC/Hampton Hawes/All Night Session! 1-3"
total 658432
-rwxrwxrwx 1 root root 40623103 Nov 20  2018 '1-01 Jordu.flac'
-rwxrwxrwx 1 root root 33533254 Nov 20  2018 '1-02 Groovin High.flac'
-rwxrwxrwx 1 root root 45031785 Nov 20  2018 '1-03 Takin Care.flac'
-rwxrwxrwx 1 root root 40790061 Nov 20  2018 '1-04 Broadway.flac'
-rwxrwxrwx 1 root root 61670459 Nov 20  2018 '1-05 Hampton Pulpit.flac'
-rwxrwxrwx 1 root root 37402705 Nov 20  2018 '2-01 Ill Remember April.flac'
-rwxrwxrwx 1 root root 21263572 Nov 20  2018 '2-02 I Should Care.flac'
-rwxrwxrwx 1 root root 30222611 Nov 20  2018 '2-03 Woody And You.flac'
-rwxrwxrwx 1 root root 16443278 Nov 20  2018 '2-04 Two Bass Hit.flac'
-rwxrwxrwx 1 root root 37650648 Nov 20  2018 '2-05 Will You Still Be Mine.flac'
-rwxrwxrwx 1 root root 38080034 Nov 20  2018 '2-06 April In Paris.flac'
-rwxrwxrwx 1 root root 45650518 Nov 20  2018 "2-07 Blue 'n Boogie.flac"
-rwxrwxrwx 1 root root 56595065 Nov 20  2018 "3-01 Do Nothin' Till You Hear From Me.flac"
-rwxrwxrwx 1 root root 42318875 Nov 20  2018 '3-02 Blues #3.flac'
-rwxrwxrwx 1 root root 57583710 Nov 20  2018 '3-03 Between The Devil And The Deep Blue Sea.flac'
-rwxrwxrwx 1 root root 35403091 Nov 20  2018 '3-04 Blues #4.flac'
-rwxrwxrwx 1 root root 29303085 Nov 20  2018 '3-05 Blues Of A Sort_.flac'
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#4
(09-09-2020, 10:40 PM)Tim Curtis Wrote:
(09-09-2020, 08:31 PM)moodenigo Wrote: If you have a multi-disc album, and more than 9 discs, then they are sorted in the wrong way.
For instance, first album1, then 10, 11, 12, until 19, then 2, and so on.

The correct behaviour should be 1 to last in their natural order.

[Image: disc-sorting.jpg]

How are the tracks numbered in the file system?

Here's an example from one of my multi-disc albums.

Code:
pi@rp3:~ $ ls -l "/mnt/NAS/FLAC/Hampton Hawes/All Night Session! 1-3"
total 658432
-rwxrwxrwx 1 root root 40623103 Nov 20  2018 '1-01 Jordu.flac'
-rwxrwxrwx 1 root root 33533254 Nov 20  2018 '1-02 Groovin High.flac'
-rwxrwxrwx 1 root root 45031785 Nov 20  2018 '1-03 Takin Care.flac'
-rwxrwxrwx 1 root root 40790061 Nov 20  2018 '1-04 Broadway.flac'
-rwxrwxrwx 1 root root 61670459 Nov 20  2018 '1-05 Hampton Pulpit.flac'
-rwxrwxrwx 1 root root 37402705 Nov 20  2018 '2-01 Ill Remember April.flac'
-rwxrwxrwx 1 root root 21263572 Nov 20  2018 '2-02 I Should Care.flac'
-rwxrwxrwx 1 root root 30222611 Nov 20  2018 '2-03 Woody And You.flac'
-rwxrwxrwx 1 root root 16443278 Nov 20  2018 '2-04 Two Bass Hit.flac'
-rwxrwxrwx 1 root root 37650648 Nov 20  2018 '2-05 Will You Still Be Mine.flac'
-rwxrwxrwx 1 root root 38080034 Nov 20  2018 '2-06 April In Paris.flac'
-rwxrwxrwx 1 root root 45650518 Nov 20  2018 "2-07 Blue 'n Boogie.flac"
-rwxrwxrwx 1 root root 56595065 Nov 20  2018 "3-01 Do Nothin' Till You Hear From Me.flac"
-rwxrwxrwx 1 root root 42318875 Nov 20  2018 '3-02 Blues #3.flac'
-rwxrwxrwx 1 root root 57583710 Nov 20  2018 '3-03 Between The Devil And The Deep Blue Sea.flac'
-rwxrwxrwx 1 root root 35403091 Nov 20  2018 '3-04 Blues #4.flac'
-rwxrwxrwx 1 root root 29303085 Nov 20  2018 '3-05 Blues Of A Sort_.flac'

This particular example has a folder for each disc in the album, numbered CD1, CD2, CD3, CD4, ...., CD9, CD10, ... CD19, CD20, CD21, and CD22.
The files are also named with as "discnumber-tracknumber - tracktitle" 

If the files are all in the same directory then the ordering of the discs is correct (provided discnumber has two digits, i.e. disc numbers < 10 begin with a zero)

 Roberto
Reply


Forum Jump: