We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 72ca508 + d56a3f8 commit f5b5372Copy full SHA for f5b5372
1 file changed
mosu-app/src/pages/events/competition/index.tsx
@@ -12,8 +12,11 @@ import { RankTableSection } from "@/widgets/competition/RankTableSection";
12
13
export const getStaticProps = async () => {
14
const topRatedSchools = await getTopRatedSchools();
15
+
16
return {
- props: { topRatedSchools },
17
+ props: {
18
+ topRatedSchools: topRatedSchools.sort((e1, e2) => e2.paidApplicationCount - e1.paidApplicationCount),
19
+ },
20
revalidate: 3600, // 1 hour
21
};
22
0 commit comments