diff --git a/files/listing.go b/files/listing.go index d09f67e1..ad60e51e 100644 --- a/files/listing.go +++ b/files/listing.go @@ -62,11 +62,11 @@ func (l byName) Swap(i, j int) { // Treat upper and lower case equally func (l byName) Less(i, j int) bool { if l.Items[i].IsDir && !l.Items[j].IsDir { - return true + return l.Sorting.Asc } if !l.Items[i].IsDir && l.Items[j].IsDir { - return false + return !l.Sorting.Asc } return natural.Less(strings.ToLower(l.Items[j].Name), strings.ToLower(l.Items[i].Name)) diff --git a/frontend/src/components/files/ListingItem.vue b/frontend/src/components/files/ListingItem.vue index 2cb03b2b..8c70d54d 100644 --- a/frontend/src/components/files/ListingItem.vue +++ b/frontend/src/components/files/ListingItem.vue @@ -129,7 +129,7 @@ export default { return } - if (event.shiftKey && this.selected.length === 1) { + if (event.shiftKey) { let fi = 0 let la = 0