Skip to content

Commit f5b5372

Browse files
authored
Merge pull request #390 from mosu-dev/feature#388
Fix#388 topRatedSchools 정렬 로직 추가
2 parents 72ca508 + d56a3f8 commit f5b5372

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • mosu-app/src/pages/events/competition

mosu-app/src/pages/events/competition/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ import { RankTableSection } from "@/widgets/competition/RankTableSection";
1212

1313
export const getStaticProps = async () => {
1414
const topRatedSchools = await getTopRatedSchools();
15+
1516
return {
16-
props: { topRatedSchools },
17+
props: {
18+
topRatedSchools: topRatedSchools.sort((e1, e2) => e2.paidApplicationCount - e1.paidApplicationCount),
19+
},
1720
revalidate: 3600, // 1 hour
1821
};
1922
};

0 commit comments

Comments
 (0)