From f9c5379400ff96c03d919da35bf7427f4ecdb081 Mon Sep 17 00:00:00 2001 From: len Date: Thu, 24 Nov 2016 15:40:34 +0100 Subject: [PATCH] Fix #546 --- .../java/eu/kanade/tachiyomi/data/download/DownloadManager.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadManager.kt b/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadManager.kt index cf9ea97c33..1f1f53a313 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadManager.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadManager.kt @@ -99,6 +99,7 @@ class DownloadManager(context: Context) { val pages = mutableListOf() chapterDir?.listFiles() ?.filter { it.type?.startsWith("image") ?: false } + ?.sortedBy { it.name } ?.forEach { file -> val page = Page(pages.size, uri = file.uri) pages.add(page)