summaryrefslogtreecommitdiffstats
path: root/routers/user/profile.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/user/profile.go')
-rw-r--r--routers/user/profile.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/routers/user/profile.go b/routers/user/profile.go
index 50d0c2397f..b0eab09333 100644
--- a/routers/user/profile.go
+++ b/routers/user/profile.go
@@ -126,12 +126,7 @@ func Profile(ctx *context.Context) {
orderBy = models.SearchOrderByAlphabetically
default:
ctx.Data["SortType"] = "recentupdate"
- orderBy = models.SearchOrderByNewest
- }
-
- // set default sort value if sort is empty.
- if ctx.Query("sort") == "" {
- ctx.Data["SortType"] = "recentupdate"
+ orderBy = models.SearchOrderByRecentUpdated
}
keyword := strings.Trim(ctx.Query("q"), " ")