From 8bc1aeb87d582f4bc868fa175621950c0edc8541 Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Fri, 25 Oct 2024 23:36:46 -0700 Subject: [PATCH] temporarily sort by depositors --- app/routes/_index.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/routes/_index.tsx b/app/routes/_index.tsx index 601f6ed..7505a65 100644 --- a/app/routes/_index.tsx +++ b/app/routes/_index.tsx @@ -326,11 +326,17 @@ const ShowShielded = ({ }: { shielded: ShieldedPoolTimedSnapshots[]; }) => { + /* const sorted = [...shielded].sort((a, b) => a.now.priority === b.now.priority ? b.now.unique_depositors - a.now.unique_depositors : b.now.priority - a.now.priority, ); + */ + const sorted = [...shielded].sort((a, b) => + b.now.unique_depositors - a.now.unique_depositors + ); + const [changeWindow, setChangeWindow] = useState("24h"); const [depositorsWindow, setDepositorsWindow] = useState("∞");