make sortby ext work as expected (#539)
This commit is contained in:
parent
82f03102a5
commit
3dc7ec69ba
2
nav.go
2
nav.go
@ -200,7 +200,7 @@ func (dir *dir) sort() {
|
|||||||
|
|
||||||
// in order to also have natural sorting with the filenames
|
// in order to also have natural sorting with the filenames
|
||||||
// combine the name with the ext but have the ext at the front
|
// 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
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user