diff --git a/src/admin-user-list/user-list.controller.js b/src/admin-user-list/user-list.controller.js index 07a769e..12f89cb 100644 --- a/src/admin-user-list/user-list.controller.js +++ b/src/admin-user-list/user-list.controller.js @@ -104,9 +104,9 @@ * Holds options for sorting user list. */ vm.options = { - 'adminUserList.firstName': ['firstName'], - 'adminUserList.lastName': ['lastName'], - 'adminUserList.username': ['username'] + 'adminUserList.firstName': ['firstName,asc'], + 'adminUserList.lastName': ['lastName,asc'], + 'adminUserList.username': ['username,asc'] }; /** diff --git a/src/admin-user-list/user-list.routes.js b/src/admin-user-list/user-list.routes.js index 3cb384c..bb906cf 100644 --- a/src/admin-user-list/user-list.routes.js +++ b/src/admin-user-list/user-list.routes.js @@ -28,6 +28,9 @@ label: 'adminUserList.users.label', url: '/users?firstName&lastName&email&usersPage&usersSize&username&sort', controller: 'UserListController', + params: { + sort: ['username,asc'] + }, templateUrl: 'admin-user-list/user-list.html', controllerAs: 'vm', accessRights: [ADMINISTRATION_RIGHTS.USERS_MANAGE],