fix(editor): sort properties alphabetically
This commit is contained in:
parent
1fdd0f4831
commit
1bdb9f146c
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue