diff options
-rw-r--r-- | crates/driver/src/recipe.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/driver/src/recipe.rs b/crates/driver/src/recipe.rs index 277a393..c6a06f1 100644 --- a/crates/driver/src/recipe.rs +++ b/crates/driver/src/recipe.rs @@ -54,7 +54,11 @@ fn is_yml(path: &Path) -> bool { pub fn read_recipes<P: AsRef<Path>>(path: P) -> Result<HashMap<TaskID, Vec<TaskDef>>> { let mut tasks = HashMap::<TaskID, Vec<TaskDef>>::new(); - for entry in WalkDir::new(path).into_iter().filter_map(|e| e.ok()) { + for entry in WalkDir::new(path) + .sort_by_file_name() + .into_iter() + .filter_map(|e| e.ok()) + { let path = entry.path(); if !path.is_file() || !is_yml(path) { continue; |