show hidden files before regular folders

This commit is contained in:
rabite 2019-02-06 21:48:38 +01:00
parent 0299393806
commit 4e9b0842f3
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ impl Files {
if self.dirs_first {
self.files.sort_by(|a, b| {
if a.is_dir() && !b.is_dir() {
if a.is_dir() && !b.is_dir() && a.name.starts_with(".") {
Ordering::Less
} else {
Ordering::Equal