Skip to content

Commit cf26af6

Browse files
committed
Respect UI.ExploreDefaultSort setting again
fix regression of #29430
1 parent a920fcf commit cf26af6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

routers/web/explore/org.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func Organizations(ctx *context.Context) {
3939
)
4040
sortOrder := ctx.FormString("sort")
4141
if sortOrder == "" {
42-
sortOrder = "newest"
42+
sortOrder = setting.UI.ExploreDefaultSort
4343
ctx.SetFormString("sort", sortOrder)
4444
}
4545

routers/web/explore/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func Users(ctx *context.Context) {
149149
)
150150
sortOrder := ctx.FormString("sort")
151151
if sortOrder == "" {
152-
sortOrder = "newest"
152+
sortOrder = setting.UI.ExploreDefaultSort
153153
ctx.SetFormString("sort", sortOrder)
154154
}
155155

0 commit comments

Comments
 (0)