From 56fa370cade55acdcaadc85b11d75a25a06ff2c6 Mon Sep 17 00:00:00 2001 From: Adrien Date: Sat, 20 Apr 2024 23:02:42 +0200 Subject: [PATCH] Sort the directory files by name cf. https://docs.rs/walkdir/latest/walkdir/struct.WalkDir.html#method.sort_by_file_name --- packages/codegen/src/create_icon_file.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/codegen/src/create_icon_file.rs b/packages/codegen/src/create_icon_file.rs index 4c6b034..cf839d3 100644 --- a/packages/codegen/src/create_icon_file.rs +++ b/packages/codegen/src/create_icon_file.rs @@ -82,6 +82,7 @@ pub fn create_icon_file(svg_path: &str, output_path: &str, icon_prefix: &str) { fn collect_svg_files(svg_path: &str, icon_prefix: &str) -> Vec { let dir_entries = WalkDir::new(svg_path) + .sort_by_file_name() .into_iter() .filter_map(|e| e.ok()) .collect::>();