Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sub-sub-folders of presets are not sorted by A-Z #481

Closed
esaruoho opened this issue Feb 3, 2019 · 7 comments
Closed

Sub-sub-folders of presets are not sorted by A-Z #481

esaruoho opened this issue Feb 3, 2019 · 7 comments

Comments

@esaruoho
Copy link
Collaborator

esaruoho commented Feb 3, 2019

I have a ~/Documents/Surge/3rdparty/folders/presets.fxp situation.
When I go to check out what's underneath 3rdparty - the A-Z sorting is not accurate.

Here is a screenshot to illustrate.
fullscreen_03_02_2019__19_11

expected: a-z is sorted a-z
current result: all over the place.

@baconpaul
Copy link
Collaborator

Oh right if categories have colliding names the sort will blow up. Can you rename ticket to that and then we can fix it?

@esaruoho esaruoho changed the title Surge does not accurately display all preset folders - will ignore patches_3rdparty over Documents/Surge Sub-sub-folders of presets are not sorted by A-Z Feb 3, 2019
@esaruoho
Copy link
Collaborator Author

esaruoho commented Feb 3, 2019

clarified ticket :)

@baconpaul
Copy link
Collaborator

@jsakkine FYI I am 99.99% sure this is an error in my submenu recursion code, not in your sorting code. I think I am using natural rather than sorted order at one point for child lists and just need to find that. So my bug not yours.

@jarkkojs
Copy link
Collaborator

jarkkojs commented Feb 3, 2019

@baconpaul, Can you take a shot at this? I can review it.

@baconpaul
Copy link
Collaborator

Yeah it's not your sorter. It's my menu maker. I'll get it!

baconpaul added a commit to baconpaul/surge that referenced this issue Feb 3, 2019
Patches were sorted correctly as were categories, but in order to
enable sub-folders I construct an explicit child list in
categories. I do that before the patch sort and traverse it
at menu build time. That category list requires a sort to
display correctly.

Fixes surge-synthesizer#481
@baconpaul
Copy link
Collaborator

Fix is in.
screen shot 2019-02-03 at 3 32 24 pm

@baconpaul
Copy link
Collaborator

Will merge once I get a quick review. Thanks for finding this!

baconpaul added a commit that referenced this issue Feb 4, 2019
baconpaul added a commit to baconpaul/surge that referenced this issue Jul 10, 2019
Patches were sorted correctly as were categories, but in order to
enable sub-folders I construct an explicit child list in
categories. I do that before the patch sort and traverse it
at menu build time. That category list requires a sort to
display correctly.

Fixes surge-synthesizer#481


Former-commit-id: 9661a5d183197eb2ed7407969cb594123a27431d [formerly c13a481]
Former-commit-id: e83c07c6a79f4383ebb7c29f64d3c230ccb124f2
Former-commit-id: b1240d1c2b0d2bc4f1356c3a99409148e4fdb9f7
baconpaul added a commit to baconpaul/surge that referenced this issue Jul 10, 2019
Sub-folder sorting. Closes surge-synthesizer#481

Former-commit-id: 8d77a6890170cb190848259d2872e36c0bc64fad [formerly e0163d0]
Former-commit-id: 5f7c765c6f66d109fc4f690da1443a08efc80d40
Former-commit-id: f7ee2f2a385b87957f747601ba7c066830108c28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants