Skip to content

Commit

Permalink
sort ListNames output
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
  • Loading branch information
whyrusleeping committed Jan 11, 2016
1 parent 46b8ba8 commit afcf8ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mfs/dir.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"os"
"path"
"sort"
"sync"
"time"

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

return out
}
Expand Down

0 comments on commit afcf8ca

Please sign in to comment.