Skip to content

Commit 8c9e734

Browse files
Kobzolsenekor
andauthored
Fix sort by role count
Co-authored-by: Remo Senekowitsch <[email protected]>
1 parent 1981315 commit 8c9e734

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/teams.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ impl RustTeams {
189189
b.is_lead.cmp(&a.is_lead)
190190
} else if a.roles.len() != b.roles.len() {
191191
// Then by role count (more roles before less roles)
192-
b.roles.cmp(&a.roles)
192+
b.roles.len().cmp(&a.roles.len())
193193
} else {
194194
// Then by the role contents
195195
// If there is no role, will return equal, and thus use the original GitHub username

0 commit comments

Comments
 (0)