mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-05 16:28:06 +08:00
sort ListNames output
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
parent
5fcd9a1f8e
commit
b4a47e35db
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user