We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01594b5 commit 2097896Copy full SHA for 2097896
src/main.rs
@@ -288,7 +288,7 @@ fn get_authors(n: usize) -> Vec<String> {
288
289
// sort authors by commit count where the one with most commit count is first
290
let mut authors: Vec<(String, usize)> = authors.into_iter().collect();
291
- authors.sort_by(|(_, count1), (_, count2)| count2.cmp(count1));
+ authors.sort_by_key(|(_, c)| *c);
292
293
// truncate the vector so we only get the count of authors we specified as 'n'
294
authors.truncate(n);
0 commit comments