From e2d60010a4831cd67eeed21dbe4c100e58e200bb Mon Sep 17 00:00:00 2001 From: subject026 Date: Tue, 3 Sep 2024 12:18:05 +0100 Subject: [PATCH] sort result panel list --- .../governance/components/ResultsPanel.tsx | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/app/governance/components/ResultsPanel.tsx b/src/app/governance/components/ResultsPanel.tsx index 2778495..aec859c 100644 --- a/src/app/governance/components/ResultsPanel.tsx +++ b/src/app/governance/components/ResultsPanel.tsx @@ -25,14 +25,18 @@ export function ResultsPanel({
{distribution.status === "SUCCESS" && - distribution.data[0].map((account, i) => ( - - ))} + distribution.data[0] + .toSorted( + (a, b) => projectsMeta[a].order - projectsMeta[b].order + ) + .map((account, i) => ( + + ))}