Fix DirMangaImporter

pull/280/head
NOTMASTER09 3 years ago
parent f41425f03d
commit 7f442d26b1

@ -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