summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/doc_data.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/doc_data.h b/core/doc_data.h
index 066cc6b848..27ea098513 100644
--- a/core/doc_data.h
+++ b/core/doc_data.h
@@ -135,7 +135,11 @@ public:
String description;
String default_value;
bool operator<(const ThemeItemDoc &p_theme_item) const {
- return name < p_theme_item.name;
+ // First sort by the data type, then by name.
+ if (data_type == p_theme_item.data_type) {
+ return name < p_theme_item.name;
+ }
+ return data_type < p_theme_item.data_type;
}
};