diff --git a/src/app/ModuleWidget.cpp b/src/app/ModuleWidget.cpp index 0f7fb89c..3db8f663 100644 --- a/src/app/ModuleWidget.cpp +++ b/src/app/ModuleWidget.cpp @@ -848,7 +848,9 @@ static void appendPresetItems(ui::Menu* menu, WeakPtr moduleWidget bool hasPresets = false; // Note: This is not cached, so opening this menu each time might have a bit of latency. if (system::isDirectory(presetDir)) { - for (std::string path : system::getEntries(presetDir)) { + std::vector entries = system::getEntries(presetDir); + std::sort(entries.begin(), entries.end()); + for (std::string path : entries) { std::string name = system::getStem(path); // Remove "1_", "42_", "001_", etc at the beginning of preset filenames std::regex r("^\\d*_");