Skip to content

Commit

Permalink
added a sorting method for iceberg repositories based on status and name
Browse files Browse the repository at this point in the history
  • Loading branch information
akevalion committed Mar 9, 2022
1 parent bc910fc commit a28f9ee
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Iceberg-TipUI/IceTipRepositoriesBrowser.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,15 @@ IceTipRepositoriesBrowser >> openManagePackagesWindow [

{ #category : #private }
IceTipRepositoriesBrowser >> refresh [

repositoryList items: self model repositories
repositoryList items: (self model repositories
sorted: [ :a :b |
| status1 status2 |
status1 := a status.
status2 := b status.
status1 string = status2 string
ifTrue: [ a name < b name ]
ifFalse: [ status1 string > status2 string ]
])
]

{ #category : #accessing }
Expand Down

0 comments on commit a28f9ee

Please sign in to comment.