Skip to content

Commit 7ee2c12

Browse files
committed
Change the order of contributors with the same number of contributions to alphabetical order
1 parent b9548d5 commit 7ee2c12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/site.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ fn author_map_to_scores(map: &AuthorMap) -> Vec<Entry> {
150150
commits: commits,
151151
})
152152
.collect::<Vec<_>>();
153-
scores.sort_by_key(|e| std::cmp::Reverse((e.commits, e.author.clone())));
153+
scores.sort_by_key(|e| (std::cmp::Reverse(e.commits), e.author.clone()));
154154
let mut last_rank = 1;
155155
let mut ranked_at_current = 0;
156156
let mut last_commits = usize::max_value();

0 commit comments

Comments
 (0)