diff options
author | Tibor Nagy <xnagytibor@gmail.com> | 2020-03-29 09:10:06 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-29 14:58:26 +0200 |
commit | 70dc80fa471a163e31d72b2a82f020a697fe02c7 (patch) | |
tree | 02e5fbfb0828742051f0bf540f17c3229c1ece2d /Applications/SystemMenu | |
parent | f95a1196270a41255586bd859c7168885a201d3d (diff) | |
download | serenity-70dc80fa471a163e31d72b2a82f020a697fe02c7.zip |
SystemMenu: Sort applications alphabetically
Diffstat (limited to 'Applications/SystemMenu')
-rw-r--r-- | Applications/SystemMenu/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Applications/SystemMenu/main.cpp b/Applications/SystemMenu/main.cpp index 106cae5a5e..e81972ea52 100644 --- a/Applications/SystemMenu/main.cpp +++ b/Applications/SystemMenu/main.cpp @@ -119,6 +119,7 @@ NonnullRefPtr<GUI::Menu> build_system_menu() g_apps.append({ app_executable, app_name, app_icon_path, 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; |