Sort list of sources in migration alphabetically

This commit is contained in:
arkon 2020-05-16 12:12:03 -04:00 committed by Jay
parent 42e299366a
commit 3827993a94

View File

@ -64,6 +64,7 @@ class MigrationPresenter(
val header = SelectionHeader()
return library.map { it.source }.toSet()
.mapNotNull { if (it != LocalSource.ID) sourceManager.getOrStub(it) else null }
.sortedBy { it.name }
.map { SourceItem(it, header) }
}