From ff8e8b7f02b9f34e131097da3679375c98497dfe Mon Sep 17 00:00:00 2001
From: Leonardo Menezes <mail@lmenezes.com>
Date: Tue, 5 Dec 2017 11:23:19 +0100
Subject: [PATCH] fix index and repositories sorting in snapshot module

closes #236
---
 public/snapshot/index.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/public/snapshot/index.html b/public/snapshot/index.html
index 1e1aba6..0ece6bc 100644
--- a/public/snapshot/index.html
+++ b/public/snapshot/index.html
@@ -42,7 +42,7 @@
       <div class="col-sm-6">
         <div class="form-group">
           <label class="form-label">repository</label>
-          <select class="form-control" ng-model="form.repository" ng-options="r for r in repositories">
+          <select class="form-control" ng-model="form.repository" ng-options="r for r in repositories | orderBy:r">
             <option value="">select repository</option>
           </select>
         </div>
@@ -69,7 +69,7 @@
               <input type="checkbox" ng-model="showSpecialIndices" ng-true-value="true"> show special indices
             </label>
           </label>
-          <select multiple="multiple" ng-model="form.indices" ng-options="i.name as i.name for i in indices | orderBy:name"
+          <select multiple="multiple" ng-model="form.indices" ng-options="i.name as i.name for i in indices | orderBy:'name'"
                   class="form-control" size="13">
           </select>
         </div>
-- 
GitLab