fix(editor): sort properties alphabetically

This commit is contained in:
maelstrom 2025-04-17 17:05:39 +02:00
parent 1fdd0f4831
commit 1bdb9f146c

View file

@ -290,6 +290,7 @@ void PropertiesView::setSelected(std::optional<InstanceRef> instance) {
}
std::vector<std::string> 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();