From 1bdb9f146c5280e4135738bf8da4b99d7b6faa85 Mon Sep 17 00:00:00 2001 From: maelstrom Date: Thu, 17 Apr 2025 17:05:39 +0200 Subject: [PATCH] fix(editor): sort properties alphabetically --- editor/panes/propertiesview.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/panes/propertiesview.cpp b/editor/panes/propertiesview.cpp index 2e25d35..383f856 100644 --- a/editor/panes/propertiesview.cpp +++ b/editor/panes/propertiesview.cpp @@ -290,6 +290,7 @@ void PropertiesView::setSelected(std::optional instance) { } std::vector properties = inst->GetProperties(); + std::sort(properties.begin(),properties.end(), [&](auto a, auto b) { return a < b; }); for (std::string property : properties) { PropertyMeta meta = inst->GetPropertyMeta(property).expect();