From ba3e025fa68b2313afb1d33c49877e959a6b6549 Mon Sep 17 00:00:00 2001 From: Srikanth Komatireddy Date: Thu, 18 Jan 2024 11:40:51 -0800 Subject: [PATCH] sort by latest added asset in home page Signed-off-by: Srikanth Komatireddy --- src/utils/sortCards.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/sortCards.js b/src/utils/sortCards.js index 801d172..76da2cb 100644 --- a/src/utils/sortCards.js +++ b/src/utils/sortCards.js @@ -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 ); }