diff --git a/app/src/main/java/io/legado/app/ui/book/arrange/ArrangeBookActivity.kt b/app/src/main/java/io/legado/app/ui/book/arrange/ArrangeBookActivity.kt index fa5d90a3e..b66a3c911 100644 --- a/app/src/main/java/io/legado/app/ui/book/arrange/ArrangeBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/arrange/ArrangeBookActivity.kt @@ -23,6 +23,7 @@ import io.legado.app.ui.widget.SelectActionBar import io.legado.app.ui.widget.recycler.DragSelectTouchHelper import io.legado.app.ui.widget.recycler.ItemTouchCallback import io.legado.app.ui.widget.recycler.VerticalDivider +import io.legado.app.utils.cnCompare import io.legado.app.utils.getPrefInt import io.legado.app.utils.getViewModel @@ -123,7 +124,9 @@ class ArrangeBookActivity : VMBaseActivity val books = when (getPrefInt(PreferKey.bookshelfSort)) { 1 -> list.sortedByDescending { it.latestChapterTime } - 2 -> list.sortedBy { it.name } + 2 -> list.sortedWith { o1, o2 -> + o1.name.cnCompare(o2.name) + } 3 -> list.sortedBy { it.order } else -> list.sortedByDescending { it.durChapterTime } }