diff --git a/src/main.rs b/src/main.rs index 78aeff0..4cd6a59 100644 --- a/src/main.rs +++ b/src/main.rs @@ -172,7 +172,7 @@ fn directory_structure(path: String) -> HashMap<&'static str, HashMap>(); - sort.sort(); + sort.sort_by_key(|a| a.to_lowercase()); let paths = sort.into_iter() .enumerate() .map(|x| (x.0 as i32, DirPath {