when requesting Task Templates, sort in ascending order by Name

This commit is contained in:
laeshiny 2017-03-16 23:56:09 +09:00
parent fa69fd13d8
commit 7196c86e61

View File

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