Skip to content

Commit d724d93

Browse files
committed
Sort components alphabetically after adding
1 parent aa2c04b commit d724d93

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

webui/src/js/viewModels/vz-application-design-view.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ function (project, accUtils, utils, ko, i18n, BufferingDataProvider, ArrayDataPr
117117
loggingTraitEnabled: false,
118118
});
119119
}
120+
this.components.observable.sort((a, b) => (a.name > b.name) ? 1 : -1);
120121

121122
// this shouldn't be needed, but duplicate entries will show in the components accordion
122123
// if multiple components are added at once.

0 commit comments

Comments
 (0)