In DSP manager DSP presets are sorted alphabetically.
But in DSP switcher in toolbar they are sorted... how? By the date of creation? Can we have them sorted alphabetically just like in DSP manager?
Bump, while in beta. I still believe that sorting DSP presets by date of creation is counter-logical an not convenient.
Unfortunately attempt to fix this in 1.4.1 beta 3 leaded to mess. Now names of presets (in toolbar DSP switcher) don't correspond to their actual presets.
See video: https://youtu.be/qZff6MJ0EiY
Hence why I was wondering how he handled the sorting issues. Typically, you have to do a lot more than just enabling sorting on the Droplist control. You have to internally sort them yourself, using a qsort or similar with a proper string sort algorithm, and each string must be paired with an identifier indicating its original position in your internal list. You could use a full structure and store the full DSP GUID in there, or you could keep the GUID in an unsorted array and store just an index integer in the sorting structures.
Either way, simply using sorted Droplists is Completely Broken, because while the dialog automatically sorts your strings, it doesn't keep any sort of unique identifier to go with your strings, so they're still 0-indexed based on their actual position in the auto-sorted list. I've already had to deal with Crap Like This at least once, so that I learned how to do proper sorted associative arrays for Droplist values.
Now, if you want to look at A Complete Fracking Mess, see: foo_midi configuration for which driver to use. It has so many fracking special cases just to deal with preset indexes in the list versus in configuration option. I really should just make a string or even GUID parameter for each of those things, and overhaul the entire preferences and preset system. Yuck.
Thanks for reporting the bug so quickly. Beta 4 posted, DSP switcher now works like it should.