From 39e1e11f997623acd3c69ec0b3f9256b7bab5469 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 16 May 2020 12:12:03 -0400 Subject: [PATCH] Sort list of sources in migration alphabetically --- .../java/eu/kanade/tachiyomi/ui/migration/MigrationPresenter.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/migration/MigrationPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/migration/MigrationPresenter.kt index 77e5b9392a..d3769d2a53 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/migration/MigrationPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/migration/MigrationPresenter.kt @@ -61,6 +61,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) } }