From a345a03d99f6e3d46a20620869e29424a0c55499 Mon Sep 17 00:00:00 2001 From: Bwko Date: Sat, 24 Dec 2016 15:41:09 +0100 Subject: Added sorting to the labels & milestones page (#199) --- routers/api/v1/repo/label.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/api/v1') diff --git a/routers/api/v1/repo/label.go b/routers/api/v1/repo/label.go index a2bf3a9e40..c22db517c3 100644 --- a/routers/api/v1/repo/label.go +++ b/routers/api/v1/repo/label.go @@ -15,7 +15,7 @@ import ( // ListLabels list all the labels of a repository func ListLabels(ctx *context.APIContext) { - labels, err := models.GetLabelsByRepoID(ctx.Repo.Repository.ID) + labels, err := models.GetLabelsByRepoID(ctx.Repo.Repository.ID, ctx.Query("sort")) if err != nil { ctx.Error(500, "GetLabelsByRepoID", err) return -- cgit v1.2.3