github.com/hspak/nomad@v0.7.2-0.20180309000617-bc4ae22a39a5/ui/app/controllers/allocations/allocation/index.js (about) 1 import { alias } from '@ember/object/computed'; 2 import Controller from '@ember/controller'; 3 import Sortable from 'nomad-ui/mixins/sortable'; 4 5 export default Controller.extend(Sortable, { 6 queryParams: { 7 sortProperty: 'sort', 8 sortDescending: 'desc', 9 }, 10 11 sortProperty: 'name', 12 sortDescending: false, 13 14 listToSort: alias('model.states'), 15 sortedStates: alias('listSorted'), 16 });