fix: folder sort tracks by title

This commit is contained in:
cwilvx
2024-08-31 12:06:53 +03:00
parent 312f81b324
commit f081da8442
+1 -1
View File
@@ -29,7 +29,7 @@ def sort_tracks(tracks: list[Track], key: str, reverse: bool = False):
# INFO: sort tracks by title for a fallback value # INFO: sort tracks by title for a fallback value
tracks = sorted(tracks, key=lambda t: t.title) tracks = sorted(tracks, key=lambda t: t.title)
if key == "title": if key == "title" and not reverse:
return tracks return tracks
return sorted(tracks, key=sortfunc, reverse=reverse) return sorted(tracks, key=sortfunc, reverse=reverse)