Radish alpha
r
rad:z3qg5TKmN83afz2fj9z3fQjU8vaYE
Radicle CI adapter for native CI
Radicle
Git
feat: order runs newest first
Lars Wirzenius committed 2 years ago
commit c4d4fe11e1bf7c06472ee406a22f9d9e74c10543
parent 0354e5a
1 file changed +3 -0
modified src/report.rs
@@ -1,4 +1,5 @@
use std::{
+
    cmp::Ord,
    collections::HashSet,
    path::{Path, PathBuf},
};
@@ -70,6 +71,8 @@ fn list_runs(repos: &[&str], run_infos: &[RunInfo]) -> Document {
        doc.push_to_body(&section);

        let mut list = Element::new(Tag::Ol).with_class("runlist");
+
        let mut runs = runs_for_repo(repo, run_infos);
+
        runs.sort_by(|a, b| b.timestamp.cmp(&a.timestamp));
        for ri in runs_for_repo(repo, run_infos) {
            let commit = Element::new(Tag::Code)
                .with_class("commit")