Skip to content

Commit

Permalink
fix artist/language sorting on tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
wiznaibus committed May 8, 2022
1 parent c9d5188 commit 5f8ec2c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/Track.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ const Track = ({
return filteredMembers;
});

artists = artists.sort((a,b) => (a.slug > b.slug) ? 1 : ((b.slug > a.slug) ? -1 : 0));
languages = languages.sort((a,b) => (a.id > b.id) ? 1 : ((b.id > a.id) ? -1 : 0));

return (
<>
<tr className="border-b border-gray-200 dark:border-gray-800 dark:border-opacity-50">
Expand Down

0 comments on commit 5f8ec2c

Please sign in to comment.