sort ListNames output

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
Jeromy 2016-01-11 06:06:33 -08:00
parent 5fcd9a1f8e
commit b4a47e35db

View File

@ -5,6 +5,7 @@ import (
"fmt"
"os"
"path"
"sort"
"sync"
"time"
@ -195,6 +196,7 @@ func (d *Directory) ListNames() []string {
for n, _ := range names {
out = append(out, n)
}
sort.Strings(out)
return out
}