We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e087267 commit 4324f2bCopy full SHA for 4324f2b
app/components/slow-node-times.js
@@ -80,8 +80,9 @@ export default Ember.Component.extend({
80
}),
81
82
sortedNodes: computed('nodes', 'sortDescending', function() {
83
+ let sortDescending = this.get('sortDescending');
84
return this.get('nodes').sort((a, b) => {
- if (this.get('sortDescending')) {
85
+ if (sortDescending) {
86
return b._stats.time.plugin - a._stats.time.plugin;
87
} else {
88
return a._stats.time.plugin - b._stats.time.plugin;
0 commit comments