make sortby ext work as expected (#539)

This commit is contained in:
Marius authored and GitHub committed 2020-12-26 16:36:43 +03:00
1 parent 82f03102a5
commit 3dc7ec69ba
1 file changed
+1 -1
+1 -1
View File
@@ -200,7 +200,7 @@ func (dir *dir) sort() {
// in order to also have natural sorting with the filenames
// combine the name with the ext but have the ext at the front
return (ext1 + name1) < (ext2 + name2)
return ext1 < ext2 || ext1 == ext2 && name1 < name2
})
}