diff --git a/src/main.rs b/src/main.rs index ebdcdf4..2d9fd9d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,9 +13,13 @@ fn main() { for entry in WalkDir::new(dir) { let entry = entry.unwrap(); if entry.file_type().is_file() { - eprintln!("{}", entry.path().display()); files.push(entry); } } } + + files.sort_by_key(|file| file.path().to_owned()); + for f in files { + println!("{}", f.path().display()); + } }