mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 22:38:09 +08:00

This commit adds a new `search_default_sort_order` site setting, set to "relevance" by default, that controls the default sort order for the full page /search route. If the user changes the order in the dropdown on that page, we remember their preference automatically, and it takes precedence over the site setting as a default from then on. This way people who prefer e.g. Latest Post as their default can make it so.