sort tags by name

This commit is contained in:
Wenkai Yin 2016-05-20 14:02:44 +08:00
parent 1919f19459
commit 0b30d04455

View File

@ -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()
}