From: Marcel van der Veldt Date: Sun, 7 Aug 2022 23:08:04 +0000 (+0200) Subject: Fix: filesystem browse ignoring case (#451) X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=520e56d7ae5653f1a0ea79a0752664d00670a755;p=music-assistant-server.git Fix: filesystem browse ignoring case (#451) Fix filesystem browse ignoring case --- diff --git a/music_assistant/music_providers/filesystem/filesystem.py b/music_assistant/music_providers/filesystem/filesystem.py index 783d43d0..84116385 100644 --- a/music_assistant/music_providers/filesystem/filesystem.py +++ b/music_assistant/music_providers/filesystem/filesystem.py @@ -211,7 +211,7 @@ class FileSystemProvider(MusicProvider): path=path, name=sub_path or self.name, # make sure to sort the resulting listing - items=sorted(subitems, key=lambda x: x.name), + items=sorted(subitems, key=lambda x: (x.name.casefold(), x.name)), ) async def sync_library(