summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/Cargo.toml2
-rw-r--r--docs/src/contribs.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/Cargo.toml b/docs/Cargo.toml
index a5885a8a..77d0b375 100644
--- a/docs/Cargo.toml
+++ b/docs/Cargo.toml
@@ -16,7 +16,7 @@ unscanny = "0.1"
include_dir = "0.7"
pulldown-cmark = "0.9"
comemo = "0.2.2"
-serde = "1"
+serde = { version = "1", features = ["derive"] }
serde_yaml = "0.8"
heck = "0.4"
yaml-front-matter = "0.1"
diff --git a/docs/src/contribs.rs b/docs/src/contribs.rs
index df1d4944..7e43249a 100644
--- a/docs/src/contribs.rs
+++ b/docs/src/contribs.rs
@@ -38,7 +38,7 @@ pub fn contributors(from: &str, to: &str) -> Option<Html> {
.collect();
// Sort by highest number of commits.
- contributors.sort_by_key(|c| Reverse(c.contributions));
+ contributors.sort_by_key(|c| (Reverse(c.contributions), c.login.clone()));
if contributors.is_empty() {
return None;
}