From 550e116be5e5eb204aeef0ff8b7bfa009573e605 Mon Sep 17 00:00:00 2001 From: Rajarshee Chatterjee Date: Sun, 5 Mar 2023 11:12:43 +0530 Subject: [PATCH] feat: Add Chapter Name Sort (Closes #525) --- .../novel/components/NovelBottomSheet.js | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/screens/novel/components/NovelBottomSheet.js b/src/screens/novel/components/NovelBottomSheet.js index 9cc6a9b5..9375daaa 100644 --- a/src/screens/novel/components/NovelBottomSheet.js +++ b/src/screens/novel/components/NovelBottomSheet.js @@ -80,7 +80,13 @@ const ChaptersSettingsSheet = ({ sort === 'ORDER BY chapterId ASC' ? sortChapters('ORDER BY chapterId DESC') @@ -88,6 +94,22 @@ const ChaptersSettingsSheet = ({ } theme={theme} /> + + sort === 'ORDER BY chapterName ASC' + ? sortChapters('ORDER BY chapterName DESC') + : sortChapters('ORDER BY chapterName ASC') + } + theme={theme} + /> );