From c0a7899416af728634b2dc52a27b31255285ae7e Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Sun, 3 Dec 2017 20:39:01 -0800 Subject: Sort repos in issues dashboard sidebar (#3072) * Sort repos in issues dashboard sidebar * Sort repos by name --- routers/user/home.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'routers/user') diff --git a/routers/user/home.go b/routers/user/home.go index c2c6a67018..581db850f6 100644 --- a/routers/user/home.go +++ b/routers/user/home.go @@ -7,6 +7,7 @@ package user import ( "bytes" "fmt" + "sort" "github.com/Unknwon/com" "github.com/Unknwon/paginater" @@ -302,6 +303,7 @@ func Issues(ctx *context.Context) { } showRepos := models.RepositoryListOfMap(showReposMap) + sort.Sort(showRepos) if err = showRepos.LoadAttributes(); err != nil { ctx.Handle(500, "LoadAttributes", fmt.Errorf("%v", err)) return -- cgit v1.2.3