Skip to content

Commit

Permalink
Merge pull request #9 from wiznaibus/develop
Browse files Browse the repository at this point in the history
fix artist/language sorting on tracks
  • Loading branch information
wiznaibus authored May 8, 2022
2 parents a05867a + 5f8ec2c commit 8f00528
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

1 comment on commit 8f00528

@vercel
Copy link

@vercel vercel bot commented on 8f00528 May 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.