Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit afcf8ca

Browse files
committedJan 11, 2016
sort ListNames output
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
1 parent 46b8ba8 commit afcf8ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎mfs/dir.go

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"fmt"
66
"os"
77
"path"
8+
"sort"
89
"sync"
910
"time"
1011

@@ -195,6 +196,7 @@ func (d *Directory) ListNames() []string {
195196
for n, _ := range names {
196197
out = append(out, n)
197198
}
199+
sort.Strings(out)
198200

199201
return out
200202
}

0 commit comments

Comments
 (0)
Please sign in to comment.