From d63a1dc021fca199ac2c910848e7e7c9e5e70632 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Thu, 17 Oct 2024 17:23:30 -0700 Subject: [PATCH] Sort repo paths --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index e95c52a..ac8d96f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -63,7 +63,8 @@ fn list_repos(directory: PathBuf) -> Result<(), std::io::Error> { Ok(repos) } - let repo_paths = gather_repos(&start, 0)?; + let mut repo_paths = gather_repos(&start, 0)?; + repo_paths.sort(); for path in &repo_paths { let path = path.strip_prefix(&start).unwrap(); println!("Repository: {}", path.display().to_string().yellow());