diff --git a/routers/api/v1/user/repo.go b/routers/api/v1/user/repo.go index 519a999a98..dbd18f133d 100644 --- a/routers/api/v1/user/repo.go +++ b/routers/api/v1/user/repo.go @@ -22,6 +22,7 @@ func listUserRepos(ctx *context.APIContext, u *models.User, private bool) { Actor: u, Private: private, ListOptions: opts, + OrderBy: "id ASC", }) if err != nil { ctx.Error(http.StatusInternalServerError, "GetUserRepositories", err)