Преглед изворни кода

Spreadsheet: Sort functions by name in the help window

Eli Youngs пре 3 година
родитељ
комит
04763c4a12
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      Userland/Applications/Spreadsheet/HelpWindow.cpp

+ 2 - 0
Userland/Applications/Spreadsheet/HelpWindow.cpp

@@ -7,6 +7,7 @@
 #include "HelpWindow.h"
 #include "SpreadsheetWidget.h"
 #include <AK/LexicalPath.h>
+#include <AK/QuickSort.h>
 #include <LibGUI/BoxLayout.h>
 #include <LibGUI/Frame.h>
 #include <LibGUI/ListView.h>
@@ -45,6 +46,7 @@ public:
         object.for_each_member([this](auto& name, auto&) {
             m_keys.append(name);
         });
+        AK::quick_sort(m_keys);
         invalidate();
     }