sort disk contents by usage

This commit is contained in:
Girish Ramakrishnan
2020-04-03 10:41:04 -07:00
parent 305f9fd1cf
commit da8b76957a
+2
View File
@@ -231,6 +231,8 @@ angular.module('Application').controller('SystemController', ['$scope', '$locati
usage: usageOther
});
}
disk.contains.sort(function (x, y) { return x.usage > y.usage; }); // sort by usage
});
});
});