github.com/aminovpavel/nomad@v0.11.8/ui/app/controllers/csi/plugins/plugin/index.js (about) 1 import Controller from '@ember/controller'; 2 import { computed } from '@ember/object'; 3 4 export default Controller.extend({ 5 sortedControllers: computed('model.controllers.@each.updateTime', function() { 6 return this.model.controllers.sortBy('updateTime').reverse(); 7 }), 8 9 sortedNodes: computed('model.nodes.@each.updateTime', function() { 10 return this.model.nodes.sortBy('updateTime').reverse(); 11 }), 12 13 actions: { 14 gotoAllocation(allocation) { 15 this.transitionToRoute('allocations.allocation', allocation); 16 }, 17 }, 18 });