sort folder dropdown

This commit is contained in:
Kyle Spearrin 2016-09-10 23:31:52 -04:00
parent 37865c0531
commit a3b3e58e94
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@
<div class="list-section-item"> <div class="list-section-item">
<label for="folder">Folder</label> <label for="folder">Folder</label>
<select id="folder" name="FolderId" ng-model="site.folderId" bit-field> <select id="folder" name="FolderId" ng-model="site.folderId" bit-field>
<option ng-repeat="folder in folders" value="{{folder.id}}">{{folder.name}}</option> <option ng-repeat="folder in folders | orderBy: ['name']" value="{{folder.id}}">{{folder.name}}</option>
</select> </select>
</div> </div>
<div class="list-section-item list-section-item-checkbox"> <div class="list-section-item list-section-item-checkbox">

View File

@ -43,7 +43,7 @@
<div class="list-section-item"> <div class="list-section-item">
<label for="folder">Folder</label> <label for="folder">Folder</label>
<select id="folder" name="FolderId" ng-model="site.folderId" bit-field> <select id="folder" name="FolderId" ng-model="site.folderId" bit-field>
<option ng-repeat="folder in folders" value="{{folder.id}}">{{folder.name}}</option> <option ng-repeat="folder in folders | orderBy: ['name']" value="{{folder.id}}">{{folder.name}}</option>
</select> </select>
</div> </div>
<div class="list-section-item list-section-item-checkbox"> <div class="list-section-item list-section-item-checkbox">