Skip to content

Commit

Permalink
Merge pull request #43 from ASR-ASU/fix/list-files-deterministically
Browse files Browse the repository at this point in the history
Sort the directory files by name
  • Loading branch information
marc2332 authored Apr 21, 2024
2 parents 28c0b67 + 56fa370 commit d09495c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/codegen/src/create_icon_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,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<PathBuf> {
let dir_entries = WalkDir::new(svg_path)
.sort_by_file_name()
.into_iter()
.filter_map(|e| e.ok())
.collect::<Vec<_>>();
Expand Down

0 comments on commit d09495c

Please sign in to comment.