Skip to content

Commit

Permalink
sort by latest added asset in home page
Browse files Browse the repository at this point in the history
Signed-off-by: Srikanth Komatireddy <[email protected]>
  • Loading branch information
skomatireddy authored and ee33 committed Jan 30, 2024
1 parent 3467cf5 commit ba3e025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/sortCards.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Sorts the order of the cards on the home page
export function sortCards(cards) {
return cards.sort((a, b) =>
a.data.order > b.data.order ? 1 : a.data.order < b.data.order ? -1 : 0,
a.data.order > b.data.order ? -1 : a.data.order < b.data.order ? 1 : 0
);
}

0 comments on commit ba3e025

Please sign in to comment.