aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/dirlist.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/dirlist.go')
-rw-r--r--widgets/dirlist.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets/dirlist.go b/widgets/dirlist.go
index c0c89170..edc84c6a 100644
--- a/widgets/dirlist.go
+++ b/widgets/dirlist.go
@@ -5,7 +5,6 @@ import (
"log"
"regexp"
"sort"
- "strings"
"github.com/gdamore/tcell"
"github.com/mattn/go-runewidth"
@@ -316,7 +315,7 @@ func (dirlist *DirectoryList) sortDirsByFoldersSortConfig() {
if jInFoldersSort >= 0 {
return false
}
- return strings.Compare(dirlist.dirs[i], dirlist.dirs[j]) == -1
+ return dirlist.dirs[i] < dirlist.dirs[j]
})
}