summaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
authorEthan Koenig <ethantkoenig@gmail.com>2017-12-03 20:39:01 -0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-12-04 12:39:01 +0800
commitc0a7899416af728634b2dc52a27b31255285ae7e (patch)
tree78c4b391ad9fb6b226737f66ab63ab03528c76ab /routers/user
parent3c1b1ca78e93fb464a5bb64aae9d845bc9f0b9c0 (diff)
downloadgitea-c0a7899416af728634b2dc52a27b31255285ae7e.tar.gz
gitea-c0a7899416af728634b2dc52a27b31255285ae7e.zip
Sort repos in issues dashboard sidebar (#3072)
* Sort repos in issues dashboard sidebar * Sort repos by name
Diffstat (limited to 'routers/user')
-rw-r--r--routers/user/home.go2
1 files changed, 2 insertions, 0 deletions
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