when requesting Team, sort in ascending order by Name

This commit is contained in:
laeshiny 2017-03-17 00:41:58 +09:00
parent c2a1165fc4
commit c06dffb8a2

View File

@ -1,7 +1,7 @@
define(function () {
app.registerController('ProjectUsersCtrl', ['$scope', '$http', 'Project', '$uibModal', '$rootScope', function ($scope, $http, Project, $modal, $rootScope) {
$scope.reload = function () {
$http.get(Project.getURL() + '/users').success(function (users) {
$http.get(Project.getURL() + '/users?sort=name&order=asc').success(function (users) {
$scope.project_user = null;
$scope.users = users;