summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go
index 125abfc342..56e286ec4a 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -253,7 +253,7 @@ func GetRepositoryById(id int64) (repo *Repository, err error) {
// GetRepositories returns the list of repositories of given user.
func GetRepositories(user *User) ([]Repository, error) {
repos := make([]Repository, 0, 10)
- err := orm.Find(&repos, &Repository{OwnerId: user.Id})
+ err := orm.Desc("updated").Find(&repos, &Repository{OwnerId: user.Id})
return repos, err
}