提交 b4a47e35 作者: Jeromy

sort ListNames output

License: MIT
Signed-off-by: 's avatarJeromy <jeromyj@gmail.com>
上级 5fcd9a1f
......@@ -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
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论