Auto playlist sorts custom field incorrectly when using a limit [#19250] [#21570]

Help improve MediaMonkey 5 by testing the latest pre-release builds, and reporting bugs and feature requests.

Moderator: Gurus

PoopertonThePious
Posts: 7
Joined: Thu Mar 24, 2022 10:34 pm

Auto playlist sorts custom field incorrectly when using a limit [#19250] [#21570]

Post by PoopertonThePious »

Hello!
I have a custom field I use for numerical values. I called it Number. I know the custom fields are saved as strings, but I only enter numbers in this one.

The problem occurs only when I apply a limit when sorting by this custom field in an autoplaylist. EX:

When I make an autoplaylist, I sort by Number. Without a limit, this works fine. Notice the number column goes 1, 2, 3, 4...etc
Image

When I apply a limit of say 10, the sorting seems to revert sorting by alphanumerical order? Notice the numbers going 1, 10, 100, 101.
Image

When I apply a greater limit of say 50, the sorting kind of works for part of it. Notice it jumps 1, 10, but then 11, 12, 13, 14, then 100 101 etc...
Image


I'm curious why it works fine with no limit, but when there is one then it fails to sort correctly. I brought a similar issue about this a few years ago, but the ticket is currently marked as failure to reproduce.
https://www.ventismedia.com/mantis/view.php?id=19250
The screenshot in the comment of the ticket shows someone sorting but no mention of using a limit.
Ludek
Posts: 5123
Joined: Fri Mar 09, 2007 9:00 am

Re: Auto playlist sorts custom field incorrectly when using a limit [#19250]

Post by Ludek »

Hi,
thanks for reporting,
tracking this issue as https://www.ventismedia.com/mantis/view.php?id=21570
Post Reply