summaryrefslogtreecommitdiff
path: root/core/doc_data.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/doc_data.h')
-rw-r--r--core/doc_data.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/doc_data.h b/core/doc_data.h
index 066cc6b848..db83dda8aa 100644
--- a/core/doc_data.h
+++ b/core/doc_data.h
@@ -123,6 +123,7 @@ public:
String setter, getter;
String default_value;
bool overridden = false;
+ String overrides;
bool operator<(const PropertyDoc &p_prop) const {
return name < p_prop.name;
}
@@ -135,7 +136,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;
}
};