Browse Source

Sort site names within the filter dropdown alphabeticaly

Markus Ochel 12 năm trước cách đây
mục cha
commit
70bfccf638
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      admin/controllers/filter-box.coffee

+ 1 - 1
admin/controllers/filter-box.coffee

@@ -19,7 +19,7 @@ class FilterBox extends Spine.Controller
 
   render: =>
     context = 
-      sites: Site.all()
+      sites: Site.all().sort(Site.nameSort)
     @html templates.render('filter-box.html', {}, context)
     @siteId = ''
     @query = ''