mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-30 05:47:57 +01: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