Skip to content

Commit 8f00528

Browse files
authored
Merge pull request #9 from wiznaibus/develop
fix artist/language sorting on tracks
2 parents a05867a + 5f8ec2c commit 8f00528

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

components/Track.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ const Track = ({
4040
return filteredMembers;
4141
});
4242

43+
artists = artists.sort((a,b) => (a.slug > b.slug) ? 1 : ((b.slug > a.slug) ? -1 : 0));
44+
languages = languages.sort((a,b) => (a.id > b.id) ? 1 : ((b.id > a.id) ? -1 : 0));
45+
4346
return (
4447
<>
4548
<tr className="border-b border-gray-200 dark:border-gray-800 dark:border-opacity-50">

0 commit comments

Comments
 (0)