Order of search results for wiki pages
Summary
When searching in a project, found wiki pages are sorted alphabetically, rather than according to relevance
Steps to reproduce
In a project with wiki enabled, search for a term which is present on multiple pages.
Example Project
https://gitlab.com/sbonfert/wiki-bug-demo/wikis
What is the current bug behavior?
In the demo project, when searching for "lorem ipsum", the search returns two pages in alphabetical order: A, B.
What is the expected correct behavior?
Since the term "lorem ipsum" appears in a heading on page B, this page should be listed before A, as it is probably more relevant. Generally, the search results should be sorted by their expected relevance, according to the place of appereance of the search term(s).
Output of checks
This bug happens on GitLab.com