From 57c3557bf587c8c3c773831554e5e590845822d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@cg.tuwien.ac.at>
Date: Wed, 6 Mar 2019 09:44:32 +0100
Subject: [PATCH] shop: prepare 4.7: sort by name; other last

---
 shop.json | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/shop.json b/shop.json
index bab0dd5..d96e813 100644
--- a/shop.json
+++ b/shop.json
@@ -186,7 +186,8 @@
             "name": "{{ trans('filter:type') }}",
             "type": "select",
             "show_default": "true",
-            "values": "{% set list = [] %}{% for k, v in const.shops %}{% for t in v.types %}<option value=\"{{ t }}\">{% set list = list|merge([ t ]) %}{{ tagTrans('shop', t) }}</option>{% endfor %}{% endfor %}<option value='other' query='nwr[shop][shop!~\"^(|.*;)({{ list|join('|') }})(|;.*)$\"]'>{{ trans('other') }}</option>",
+            "values": "{% set list = [] %}{% for k, v in const.shops %}{% for t in v.types %}<option value=\"{{ t }}\">{% set list = list|merge([ t ]) %}{{ tagTrans('shop', t) }}</option>{% endfor %}{% endfor %}<option weight='1' value='other' query='nwr[shop][shop!~\"^(|.*;)({{ list|join('|') }})(|;.*)$\"]'>{{ trans('other') }}</option>",
+            "sort": "natsort",
             "op": "has"
         }
     }