From 7196c86e61adce7f56d264356820e352131fcc65 Mon Sep 17 00:00:00 2001 From: laeshiny Date: Thu, 16 Mar 2017 23:56:09 +0900 Subject: [PATCH] when requesting Task Templates, sort in ascending order by Name --- public/js/controllers/projects/inventory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/controllers/projects/inventory.js b/public/js/controllers/projects/inventory.js index 33da7066..14ddeca0 100644 --- a/public/js/controllers/projects/inventory.js +++ b/public/js/controllers/projects/inventory.js @@ -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; }); }