Page 1 of 1

Sorting Numbers in Custom Fields

Posted: Sat Mar 17, 2012 10:13 am
by Nextasy
I use one of the custom fields for numbers, but when I go to sort my songs by that field, it sorts it wrong.

For instance, if I have 90, 10, and 1000, it will sort them 10, 1000, 90, instead of in numerical order.

Is there any way I can fix this?

Re: Sorting Numbers in Custom Fields

Posted: Sat Mar 17, 2012 10:20 am
by nohitter151
No. Custom fields are sorted alphabetically. The only way around it would be to use leading zeros.

Re: Sorting Numbers in Custom Fields

Posted: Sat Mar 17, 2012 10:21 am
by Nextasy
Okay, thank you. It's gonna be ugly but I might as well.

Sort order of custom fields

Posted: Mon Sep 09, 2019 3:10 am
by Hackej
Hi!

I'm having problems with sort order of custom fields, I use one of them for version number of tracks in the format of 3-1, 3-2, .... 3-10, 3-11,3-12.

This means that the tracks are sorted incorrectly, i.e. 2-10, 2-11, 2-12, 2-1, 2-2, 2-3....etc.

I found this old topic regarding this issue; https://www.mediamonkey.com/forum/viewt ... =1&t=65131
and it's seems that custom fields are sorted alphanumerically.

- Anything done regarding this since 2012, I'm currently using version 4.1.21.1875?
- Anything I can do to fix this, other than of course using format 2-01, 2-02 etc?

BR
/Hackej

Re: Sort order of custom fields

Posted: Mon Sep 09, 2019 3:16 am
by Hackej
Hi!

Correction...

The sort order is actually: 2, 2-1, 2-10, 2-11, 2-12, 2-2, 2-3, 2-4, ...etc.

BR
/Hackej

Re: Sort order of custom fields

Posted: Mon Sep 09, 2019 4:01 am
by Erwin Hanzl
custom fields are sorted alphanumerically.
That's correct - 2-11 can never be a number
For albums use the fields Disc # and Track #

Update your MM version http://www.mediamonkey.com/forum/viewto ... 54426&sd=d