mirror of
https://github.com/mihonapp/mihon.git
synced 2025-06-26 19:17:51 +02:00
Sort list of sources in migration alphabetically
(cherry picked from commit 39e1e11f99
)
This commit is contained in:
@ -69,6 +69,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) }
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user