Skip to content

Commit

Permalink
Fix #738
Browse files Browse the repository at this point in the history
Order alphabetically nodes in architectural map.
  • Loading branch information
LABSARI committed May 26, 2023
1 parent 820e65a commit 7b0b36a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/MooseIDE-Dependency/MiArchitecturalMapBuilder.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,14 @@ MiArchitecturalMapBuilder >> borderFor: node [

{ #category : #building }
MiArchitecturalMapBuilder >> build [

rootNode ifNotNil: [
self updateWithModelSettings.
^ self ].
rootNode := HNode new.
self addTags.
mapModel showBusEntities ifTrue: [
rootNode addAll: (self elements
collect: [ :e | self buildNodeFromEntity: e register: true ]
thenReject: [ :e | e isNil ]) ].
rootNode addAll: self createRootNodes ].
self renderIn: self container.
self updateWithModelSettings.
^ self container
Expand Down Expand Up @@ -236,6 +235,14 @@ MiArchitecturalMapBuilder >> createMultiTagBoxSized: aSize [
^ cp
]

{ #category : #building }
MiArchitecturalMapBuilder >> createRootNodes [

^ (self elements
collect: [ :e | self buildNodeFromEntity: e register: true ]
thenReject: [ :e | e isNil ]) sort: [ :a :b | a name < b name ]
]

{ #category : #accessing }
MiArchitecturalMapBuilder >> elements [

Expand Down

0 comments on commit 7b0b36a

Please sign in to comment.