Make file ordering ignore case

This commit is contained in:
NGnius (Graham) 2022-03-27 19:19:03 -04:00
parent e299c4f2dd
commit 9daac42348

View file

@ -41,7 +41,10 @@ impl Iterator for SortedReadDir {
}
}
self.dir_iter_complete = true;
self.cache.sort_by(|a, b| b.path().cmp(&a.path()));
self.cache.sort_by(
|a, b| b.path().to_string_lossy().to_lowercase().cmp(
&a.path().to_string_lossy().to_lowercase())
);
}
if self.cache.is_empty() {
None