From 71eb1976892cf8705fb8f463fadd634dff818e54 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Wed, 21 Dec 2022 11:25:38 +0100 Subject: [PATCH] Fix the sorting of playlists in the library --- .../java/com/github/libretube/ui/fragments/LibraryFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/github/libretube/ui/fragments/LibraryFragment.kt b/app/src/main/java/com/github/libretube/ui/fragments/LibraryFragment.kt index 5a43be31d..325b33916 100644 --- a/app/src/main/java/com/github/libretube/ui/fragments/LibraryFragment.kt +++ b/app/src/main/java/com/github/libretube/ui/fragments/LibraryFragment.kt @@ -116,8 +116,8 @@ class LibraryFragment : BaseFragment() { ) { "recent" -> playlists "recent_reversed" -> playlists.reversed() - "name" -> playlists.sortedBy { it.name } - "name_reversed" -> playlists.sortedBy { it.name }.reversed() + "name" -> playlists.sortedBy { it.name?.lowercase() } + "name_reversed" -> playlists.sortedBy { it.name?.lowercase() }.reversed() else -> playlists }