EverestAPI / Everest

Everest - Celeste Mod Loader / Mod API
https://everestapi.github.io/
MIT License
369 stars 80 forks source link

Sort Mod Options Alphabetically #824

Open notTamion opened 1 month ago

notTamion commented 1 month ago

I often find myself looking for the options of a specific mod i added but not remembering the full name of the mod. It would make finding these settings a lot easier if the options were sorted alphabetically as i often do remember the first letter or two. I would also be fine with adding an extra option to toggle between load order and alphabetical sort incase this is too big of a change which might confuse long time users that are used to their current order. (myers seems to add some random diff for some reason even though i didn't change anything in those lines)

RedFlames commented 1 month ago

I guess because of Everest.Boot(), the CoreModule is currently always the first one in the list, but shouldn't you yank out modules.FindIndex(module => module.Metadata.Name == "Everest") rather than index 0 just in case? 😃

Or possibly modules.Remove(CoreModule.Instance) and later modules.Insert(0, CoreModule.Instance) if that would work.

Also yeah I just randomly looked at this. Besides that as an average Everest user, as long as modoptionsorder.txt still works I'm not sure it'd make much of a difference to me if they're a jumble in load order or alphabetical x)

notTamion commented 1 month ago

thx for the feedback.