File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments