From a216139f72f7f010023d41aea9122b2732ea2c95 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Mon, 8 Aug 2022 01:03:27 +0200 Subject: [PATCH] Fix filesystem browse ignoring case --- music_assistant/music_providers/filesystem/filesystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_assistant/music_providers/filesystem/filesystem.py b/music_assistant/music_providers/filesystem/filesystem.py index 783d43d06..841163857 100644 --- a/music_assistant/music_providers/filesystem/filesystem.py +++ b/music_assistant/music_providers/filesystem/filesystem.py @@ -211,7 +211,7 @@ async def browse(self, path: str) -> BrowseFolder: 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(