added sort
This commit is contained in:
parent
60b32441ef
commit
e6f0611ee3
|
@ -22,6 +22,7 @@ import (
|
|||
"net"
|
||||
"net/http"
|
||||
"regexp"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
@ -317,6 +318,12 @@ func (c *Client) listUserRepos(fromOptions gitlab.ListProjectsOptions) ([]*gitso
|
|||
}
|
||||
}
|
||||
|
||||
sort.Slice(repos, func(i, j int) bool {
|
||||
a := repos[i]
|
||||
b := repos[j]
|
||||
return a.Path < b.Path
|
||||
})
|
||||
|
||||
return repos, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue