diff options
Diffstat (limited to 'routers/web/explore/org.go')
-rw-r--r-- | routers/web/explore/org.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/routers/web/explore/org.go b/routers/web/explore/org.go index c9fb05ff3a..c8b26c35ef 100644 --- a/routers/web/explore/org.go +++ b/routers/web/explore/org.go @@ -30,6 +30,10 @@ func Organizations(ctx *context.Context) { visibleTypes = append(visibleTypes, structs.VisibleTypeLimited, structs.VisibleTypePrivate) } + if ctx.FormString("sort") == "" { + ctx.SetFormString("sort", UserSearchDefaultSortType) + } + RenderUserSearch(ctx, &user_model.SearchUserOptions{ Actor: ctx.Doer, Type: user_model.UserTypeOrganization, |