You are not logged in.

#1 2023-09-06 17:20:59

lucyhapsti
Member
Registered: 2023-09-06
Posts: 3

[SOLVED]ncmpcpp sorting by filename making songs appear in wrong order

This is how it shows up
https://imgur.com/nmAxbyG
I would like this to be sorted by the more standard way, for example 109, 110, 111. And not 109, 11, 110.
I have tried changing the sorting method by using CTRL + S but that doesnt change anything.

Last edited by lucyhapsti (2023-09-07 14:25:28)

Offline

#2 2023-09-06 21:03:29

obap74
Member
Registered: 2021-03-18
Posts: 93

Re: [SOLVED]ncmpcpp sorting by filename making songs appear in wrong order

Do you also have the issue when listing the files with

ls

or from a file manager?

Maybe try to use

LC_COLLATE=C.UTF-8

or

LC_COLLATE=C

See https://wiki.archlinux.org/title/Locale … _collation.

Another possible workaround  is to use "001/002/003..." instead of "01/02/03" for filenames with albums that have 100+ tracks.

Offline

#3 2023-09-06 22:09:25

seth
Member
Registered: 2012-09-03
Posts: 60,000

Re: [SOLVED]ncmpcpp sorting by filename making songs appear in wrong order

LC_COLLATE won't affect numbers.
"ls -v" does "natural" sort for numbers, but I don't see any ncmpcpp option for that.

Online

#4 2023-09-07 13:01:08

lucyhapsti
Member
Registered: 2023-09-06
Posts: 3

Re: [SOLVED]ncmpcpp sorting by filename making songs appear in wrong order

obap74 wrote:

Another possible workaround  is to use "001/002/003..." instead of "01/02/03" for filenames with albums that have 100+ tracks.

Is there any command I could use to modify the names and turn 01... into 0001... for example?

Offline

#5 2023-09-07 13:23:32

seth
Member
Registered: 2012-09-03
Posts: 60,000

Re: [SOLVED]ncmpcpp sorting by filename making songs appear in wrong order

Online

#6 2023-09-07 14:07:34

lucyhapsti
Member
Registered: 2023-09-06
Posts: 3

Re: [SOLVED]ncmpcpp sorting by filename making songs appear in wrong order

thanks so much! I have tried searching for something like this and never found a 100% solution

Offline

#7 2023-09-07 14:22:34

seth
Member
Registered: 2012-09-03
Posts: 60,000

Re: [SOLVED]ncmpcpp sorting by filename making songs appear in wrong order

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

Board footer

Powered by FluxBB