sort ListNames output
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
Jeromy committed
Jan 11, 2016 at 06:06 UTC
b4a47e35db6c2908588eb80a465d84716cef61de
1 file changed
+2
mfs/dir.go
+2
@@ -5,6 +5,7 @@ import (
5
"fmt"
6
"os"
7
"path"
8
+ "sort"
9
"sync"
10
"time"
11
@@ -195,6 +196,7 @@ func (d *Directory) ListNames() []string {
196
for n, _ := range names {
197
out = append(out, n)
198
}
199
+ sort.Strings(out)
200
201
return out
202
}