diff --git a/app/components/stats/stats.html b/app/components/stats/stats.html
index d4c85d64b..556703fe7 100644
--- a/app/components/stats/stats.html
+++ b/app/components/stats/stats.html
@@ -59,11 +59,17 @@
- {{title}} |
+
+
+ {{title}}
+
+
+
+ |
-
+
{{processInfo}} |
diff --git a/app/components/stats/statsController.js b/app/components/stats/statsController.js
index 902b15b59..c8c6368dc 100644
--- a/app/components/stats/statsController.js
+++ b/app/components/stats/statsController.js
@@ -4,6 +4,13 @@ function (Settings, $scope, Messages, $timeout, Container, ContainerTop, $stateP
// TODO: Force scale to 0-100 for cpu, fix charts on dashboard,
// TODO: Force memory scale to 0 - max memory
$scope.ps_args = '';
+ $scope.state = {};
+ $scope.sortType = 'CMD';
+ $scope.sortReverse = false;
+ $scope.order = function (sortType) {
+ $scope.sortReverse = ($scope.sortType === sortType) ? !$scope.sortReverse : false;
+ $scope.sortType = sortType;
+ };
$scope.getTop = function () {
ContainerTop.get($stateParams.id, {
ps_args: $scope.ps_args