Order A-Z not Z-A

This commit is contained in:
Dane Everitt 2019-05-14 18:43:04 -07:00
parent 9c252a5ad7
commit 7182b02ce2
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -473,7 +473,7 @@ func (fs *Filesystem) ListDirectory(p string) ([]*Stat, error) {
// Sort the output alphabetically to begin with since we've run the output
// through an asynchronous process and the order is gonna be very random.
sort.SliceStable(out, func(i, j int) bool {
if out[i].Info.Name() == out[j].Info.Name() || out[i].Info.Name() < out[j].Info.Name() {
if out[i].Info.Name() == out[j].Info.Name() || out[i].Info.Name() > out[j].Info.Name() {
return true
}