diff --git a/model/file.go b/model/file.go index eb0cb0b8..de599d0c 100644 --- a/model/file.go +++ b/model/file.go @@ -56,7 +56,7 @@ func ExtractFolder(files []File, account *Account) { return } front := account.ExtractFolder == "front" - sort.Slice(files, func(i, j int) bool { + sort.SliceStable(files, func(i, j int) bool { if files[i].IsDir() || files[j].IsDir() { if !files[i].IsDir() { return !front