mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
15eed55a54
commit
b73f3fc01a
1 changed files with 7 additions and 7 deletions
|
|
@ -33,14 +33,14 @@ impl FilesSorter {
|
|||
match self.by {
|
||||
SortBy::Alphabetical => items.sort_unstable_by(|a, b| {
|
||||
if self.sensitive {
|
||||
return self.cmp(&*a.url, &*b.url, self.promote(a, b));
|
||||
}
|
||||
|
||||
self.cmp(
|
||||
a.url.deref().as_os_str().to_ascii_lowercase(),
|
||||
b.url.deref().as_os_str().to_ascii_lowercase(),
|
||||
a.url.as_os_str().to_ascii_lowercase(),
|
||||
b.url.as_os_str().to_ascii_lowercase(),
|
||||
self.promote(a, b),
|
||||
)
|
||||
} else {
|
||||
self.cmp(&*a.url, &*b.url, self.promote(a, b))
|
||||
}
|
||||
}),
|
||||
SortBy::Created => items.sort_unstable_by(|a, b| {
|
||||
if let (Ok(aa), Ok(bb)) = (a.meta.created(), b.meta.created()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue