Commit 4a4176cbe197783e34a7efd411ccc816c79bfaa3

Authored by Mitali Srivastava
1 parent f46129b2

Bug #7909:CI > Arrange all the illustrations in alphabetical order

also fixed it in CA as well
400-SOURCECODE/AIAHTML5.Web/app/controllers/CAController.js
... ... @@ -33,7 +33,14 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, pages, B
33 33 promise.then(
34 34 function (result) {
35 35 $scope.AnimationData = result;
36   - $scope.selectedCAListViewData = $scope.AnimationData.root.CAData;
  36 + //$scope.selectedCAListViewData = $scope.AnimationData.root.CAData;
  37 +
  38 + $scope.selectedCAListViewData = new jinqJs()
  39 + .from($scope.AnimationData.root.CAData)
  40 + .orderBy([{ field: '_Title', sort: 'asc' }])
  41 + .select();
  42 +
  43 + console.log($scope.selectedCAListViewData);
37 44  
38 45 $('#grid-view').empty();
39 46  
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js
... ... @@ -43,7 +43,12 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
43 43 promise.then(
44 44 function (result) {
45 45 $scope.IllustrationData = result;
46   - $scope.selectedCIListViewData = $scope.IllustrationData.root.CIData;
  46 + //$scope.selectedCIListViewData = $scope.IllustrationData.root.CIData;
  47 +
  48 + $scope.selectedCIListViewData = new jinqJs()
  49 + .from($scope.IllustrationData.root.CIData)
  50 + .orderBy([{ field: '_Title', sort: 'asc' }])
  51 + .select();
47 52  
48 53 $('#grid-view').empty();
49 54  
... ...