angular.module('app').controller('mvUserListController', function ($scope, mvUser) {
  $scope.users = mvUser.query();

  $scope.sortOptions = [{
    value: "username",
    text: "Sort by username"
  }, {
    value: "registrationDate",
    text: "Sort by registration date"
  }, {
    value: "role",
    text: "Sort by role"
  }];

  $scope.sortOrder = {
    selected: $scope.sortOptions[0].value
  };
});
angular.module('app').controller('mvUserListController', function ($scope, mvUser) {
  $scope.users = mvUser.query();

  $scope.sortOptions = [{
    value: "username",
    text: "Sort by username"
  }, {
    value: "- registrationDate",
    text: "Sort by registration date"
  }, {
    value: "- role",
    text: "Sort by role"
  }];

  $scope.sortOrder = {
    selected: $scope.sortOptions[0].value
  };
});
Fix ordering on user list page
Fix ordering on user list page
