Sort repos in issues dashboard sidebar (#3072)
* Sort repos in issues dashboard sidebar * Sort repos by name
This commit is contained in:
parent
3c1b1ca78e
commit
c0a7899416
2 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue