1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:08:10 +00:00

SystemMenu: Sort applications alphabetically

This commit is contained in:
Tibor Nagy 2020-03-29 09:10:06 +02:00 committed by Andreas Kling
parent f95a119627
commit 70dc80fa47

View file

@ -119,6 +119,7 @@ NonnullRefPtr<GUI::Menu> build_system_menu()
g_apps.append({ app_executable, app_name, app_icon_path, app_category }); g_apps.append({ app_executable, app_name, app_icon_path, app_category });
seen_app_categories.set(app_category); seen_app_categories.set(app_category);
} }
quick_sort(g_apps, [](auto& a, auto& b) { return a.name < b.name; });
} }
Vector<String> sorted_app_categories; Vector<String> sorted_app_categories;