Skip to content

Commit b67ee95

Browse files
committed
Change order about page.
1 parent 21ba573 commit b67ee95

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/routes/about/+page.svelte

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,21 @@
99
1010
const peopleGroups = data.people as Record<string, Person[]>
1111
12-
const groupKeys = Object.keys(peopleGroups)
12+
// Define the manual order for the groups
13+
const groupOrder = [
14+
'Leadership Team',
15+
'National Chapters',
16+
'National Chapter Leads',
17+
'Global Board'
18+
]
19+
20+
// Get all group keys and sort them according to the manual order
21+
const allGroupKeys = Object.keys(peopleGroups)
22+
const groupKeys = groupOrder.filter((group) => allGroupKeys.includes(group))
23+
24+
// Add any groups that weren't in the manual order (in case new ones appear)
25+
const remainingGroups = allGroupKeys.filter((group) => !groupOrder.includes(group))
26+
groupKeys.push(...remainingGroups)
1327
1428
const { title, description, date } = meta
1529
</script>

0 commit comments

Comments
 (0)