Skip to content

Commit 5960a20

Browse files
nikoshellcybit
authored andcommitted
Sort sprints
1 parent 66f280b commit 5960a20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/sprints.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ if (!entry) {
1616
throw new Error('Could not find page entry.');
1717
}
1818
19-
const sprints = await getCollection("sprints", ({ data }) => {
19+
const sprints = (await getCollection("sprints", ({ data }) => {
2020
return import.meta.env.MODE === "production" ? data.draft !== true : true;
21-
});
21+
})).sort((a, b) => a.id.localeCompare(b.id));
2222
2323
---
2424

0 commit comments

Comments
 (0)