From 0dec2f0e0adf20a254647f7ade80999ac27cfc21 Mon Sep 17 00:00:00 2001 From: testusuke Date: Tue, 21 May 2024 15:53:26 +0900 Subject: [PATCH 1/2] =?UTF-8?q?change:=20=E8=A9=A6=E5=90=88=E3=82=92?= =?UTF-8?q?=E6=99=82=E9=96=93=E9=A0=86=E3=81=AB=E8=A1=A8=E7=A4=BA=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/match/matchList.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/match/matchList.tsx b/components/match/matchList.tsx index ebc2e7a..ae71f93 100644 --- a/components/match/matchList.tsx +++ b/components/match/matchList.tsx @@ -7,7 +7,10 @@ export type MatchListProps = { } export default async function MatchList(props: MatchListProps) { - const components = props.matches.map((match) => + const components = props.matches + // sort by date in ascending order + .sort((a, b) => new Date(a.startAt).getTime() - new Date(b.startAt).getTime()) + .map((match) => Date: Tue, 21 May 2024 16:00:36 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E3=83=AA=E3=83=BC=E3=82=B0=E8=A1=A8?= =?UTF-8?q?=E3=81=8C=E8=A6=8B=E5=88=87=E3=82=8C=E3=82=8B=E5=95=8F=E9=A1=8C?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/league/table/leagueTable.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/league/table/leagueTable.tsx b/components/league/table/leagueTable.tsx index 921e66c..b63e183 100644 --- a/components/league/table/leagueTable.tsx +++ b/components/league/table/leagueTable.tsx @@ -83,6 +83,7 @@ export default async function LeagueTable(props: LeagueTableProps) { {cells}