/wiki_pages: sort autocomplete by post count.
* Add search[order]=post_count param to /wiki_pages. * Make autocomplete do a prefix match ordered by post count, so that it works the same way that tag autocomplete does elsewhere.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
<div class="input">
|
||||
<label for="search_order">Order</label>
|
||||
<%= select "search", "order", ["Name", "Date"] %>
|
||||
<%= select "search", "order", [%w[Name title], %w[Date time], %w[Posts post_count]] %>
|
||||
</div>
|
||||
|
||||
<div class="input">
|
||||
|
||||
Reference in New Issue
Block a user