Sort list of sources in migration alphabetically
This commit is contained in:
parent
5f9df78ab0
commit
39e1e11f99
1 changed files with 1 additions and 0 deletions
|
@ -61,6 +61,7 @@ class MigrationPresenter(
|
||||||
val header = SelectionHeader()
|
val header = SelectionHeader()
|
||||||
return library.map { it.source }.toSet()
|
return library.map { it.source }.toSet()
|
||||||
.mapNotNull { if (it != LocalSource.ID) sourceManager.getOrStub(it) else null }
|
.mapNotNull { if (it != LocalSource.ID) sourceManager.getOrStub(it) else null }
|
||||||
|
.sortedBy { it.name }
|
||||||
.map { SourceItem(it, header) }
|
.map { SourceItem(it, header) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue