mirror of
https://github.com/goharbor/harbor
synced 2024-09-20 20:27:44 +00:00
sort tags by name
This commit is contained in:
parent
1919f19459
commit
0b30d04455
|
@ -19,6 +19,7 @@ import (
|
|||
"encoding/json"
|
||||
"net/http"
|
||||
"os"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
@ -184,6 +185,8 @@ func (ra *RepositoryAPI) GetTags() {
|
|||
|
||||
tags = append(tags, ts...)
|
||||
|
||||
sort.Strings(tags)
|
||||
|
||||
ra.Data["json"] = tags
|
||||
ra.ServeJSON()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user