about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--widgets/dirlist.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets/dirlist.go b/widgets/dirlist.go
index c0c8917..edc84c6 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]
 	})
 }