/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:
evazion
2017-03-30 13:14:57 -05:00
parent 6b462c865e
commit b9693827c3
4 changed files with 11 additions and 5 deletions

View File

@@ -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">