Make file ordering ignore case
This commit is contained in:
parent
e299c4f2dd
commit
9daac42348
1 changed files with 4 additions and 1 deletions
|
@ -41,7 +41,10 @@ impl Iterator for SortedReadDir {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
self.dir_iter_complete = true;
|
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() {
|
if self.cache.is_empty() {
|
||||||
None
|
None
|
||||||
|
|
Loading…
Reference in a new issue