@@ -31,6 +31,8 @@ pub struct PageData {
31
31
subteams : Vec < Team > ,
32
32
wgs : Vec < Team > ,
33
33
project_groups : Vec < Team > ,
34
+ // Marker teams and other kinds of groups that have a website entry
35
+ other_teams : Vec < Team > ,
34
36
}
35
37
36
38
#[ derive( Clone ) ]
@@ -112,6 +114,7 @@ impl Data {
112
114
let mut raw_subteams = Vec :: new ( ) ;
113
115
let mut wgs = Vec :: new ( ) ;
114
116
let mut project_groups = Vec :: new ( ) ;
117
+ let mut other_teams = Vec :: new ( ) ;
115
118
116
119
let superteams: HashMap < _ , _ > = self
117
120
. teams
@@ -142,12 +145,13 @@ impl Data {
142
145
TeamKind :: Team => raw_subteams. push ( team) ,
143
146
TeamKind :: WorkingGroup => wgs. push ( team) ,
144
147
TeamKind :: ProjectGroup => project_groups. push ( team) ,
145
- _ => { }
148
+ TeamKind :: MarkerTeam | TeamKind :: Unknown => other_teams . push ( team ) ,
146
149
} ) ;
147
150
148
151
raw_subteams. sort_by_key ( |team| Reverse ( team. website_data . as_ref ( ) . unwrap ( ) . weight ) ) ;
149
152
wgs. sort_by_key ( |team| Reverse ( team. website_data . as_ref ( ) . unwrap ( ) . weight ) ) ;
150
153
project_groups. sort_by_key ( |team| Reverse ( team. website_data . as_ref ( ) . unwrap ( ) . weight ) ) ;
154
+ other_teams. sort_by_key ( |team| Reverse ( team. website_data . as_ref ( ) . unwrap ( ) . weight ) ) ;
151
155
152
156
// Lay out subteams according to their hierarchy.
153
157
// Superteams come first and subteams come after, recursively.
@@ -181,6 +185,7 @@ impl Data {
181
185
subteams,
182
186
wgs,
183
187
project_groups,
188
+ other_teams,
184
189
} )
185
190
}
186
191
}
0 commit comments