Fix DirMangaImporter

pull/271/head
NOTMASTER09 3 years ago committed by Koitharu
parent f41425f03d
commit 03e0eefe4d

@ -58,7 +58,7 @@ class DirMangaImporter(
private suspend fun addPages(output: CbzMangaOutput, root: DocumentFile, path: String, state: State) {
var number = 0
for (file in root.listFiles()) {
for (file in root.listFiles().sortedBy {it.name}) {
when {
file.isDirectory -> {
addPages(output, file, path + "/" + file.name, state)

Loading…
Cancel
Save