aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrendan F <EpicWolverine@users.noreply.github.com>2023-07-12 23:37:53 -0700
committerBrendan F <EpicWolverine@users.noreply.github.com>2023-07-12 23:37:53 -0700
commit841cf787519c726ddc5873ed3d1995ca3b352544 (patch)
tree556ecaf9b807105557d29ce72b7039d09ad0af84
parent1f1451735b51ad3a66e7b73d307f66bba938e193 (diff)
Fix showing songs in playlist order
-rw-r--r--src/helpers/searchSong.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/helpers/searchSong.ts b/src/helpers/searchSong.ts
index 4246480..13fa794 100644
--- a/src/helpers/searchSong.ts
+++ b/src/helpers/searchSong.ts
@@ -18,5 +18,6 @@ export function searchSong(searchTerm: string): Song[] {
})
.sort((a, b) =>
a.artist.toLowerCase().localeCompare(b.artist.toLocaleLowerCase())
+ || a.name.toLowerCase().localeCompare(b.name.toLocaleLowerCase())
);
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage