sdatkinson / NeuralAmpModelerPlugin

Plugin for Neural Amp Modeler
MIT License
1.87k stars 124 forks source link

[FEATURE] Sort nam models with natural sort order #346

Open phillipmself opened 1 year ago

phillipmself commented 1 year ago

The sort algorithm for the nam model list is the standard char value sort. A more natural ordering like Windows can do could be better suited for files with naming schemes that reflect amp settings.

https://github.com/scopeInfinity/NaturalSort is MIT licensed. This or another open source alternative could be easily added to NAM and called as the sort algorithm for file names.

Windows vs NAM sorting: image

sdatkinson commented 1 year ago

I can't point to exactly where it happens off the top of my head, but I know that the sorting is happening at the iPlug2 level.

I could figure it out, but I don't have time to look at the moment and @olilarkin may know off the top of his head: whether there's an option for this or whether it'd need a more hands-on change to the file browser control that's being used?

olilarkin commented 1 year ago

it would be possible by modifiying the IDirBrowseBaseControl but I think it would be better to make a better browser for nam files based on their metadata tbh rather than have people name files like this

On Thu, Jul 20, 2023 at 3:59 PM Steven Atkinson @.***> wrote:

I can't point to exactly where it happens off the top of my head, but I know that the sorting is happening at the iPlug2 level.

I could figure it out, but I don't have time to look at the moment and @olilarkin https://github.com/olilarkin may know off the top of his head: whether there's an option for this or whether it'd need a more hands-on change to the file browser control that's being used?

— Reply to this email directly, view it on GitHub https://github.com/sdatkinson/NeuralAmpModelerPlugin/issues/346#issuecomment-1643980320, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFACLQTKYRZIMKATBGPURTXRE2SZANCNFSM6AAAAAA2QZ7WQI . You are receiving this because you were mentioned.Message ID: @.***>