Commit 515f011045336a8906b4ebae744bb240a8eb996e

Authored by unknown
1 parent 93fa6f7d

Commit Changes

400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
@@ -1326,26 +1326,26 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou @@ -1326,26 +1326,26 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
1326 } 1326 }
1327 1327
1328 1328
1329 - //for (var i = 0; i <= $rootScope.sortedListArray.length - 1; i++) { 1329 + for (var i = 0; i <= $rootScope.sortedListArray.length - 1; i++) {
1330 1330
1331 - // for (j = i + 1; j <= $rootScope.sortedListArray.length - 1; j++) { 1331 + for (j = i + 1; j <= $rootScope.sortedListArray.length - 1; j++) {
1332 1332
1333 - // if ($rootScope.sortedListArray[i].title.substr(0, 1) > $rootScope.sortedListArray[j].title.substr(0, 1)) {  
1334 -  
1335 - // var termText = $rootScope.sortedListArray[i].title;  
1336 - // var termNumbr = $rootScope.sortedListArray[i].termNumbr;  
1337 - // var termLanguage = $rootScope.sortedListArray[i].language;  
1338 -  
1339 - // $rootScope.sortedListArray[i].title = $rootScope.sortedListArray[j].title;  
1340 - // $rootScope.sortedListArray[i].termNumbr = $rootScope.sortedListArray[j].termNumbr;  
1341 - // $rootScope.sortedListArray[i].language = $rootScope.sortedListArray[j].language;  
1342 -  
1343 - // $rootScope.sortedListArray[j].title = termText;  
1344 - // $rootScope.sortedListArray[j].termNumbr = termNumbr;  
1345 - // $rootScope.sortedListArray[j].language = termLanguage;  
1346 - // }  
1347 - // }  
1348 - //} 1333 + if ($rootScope.sortedListArray[i].title.substr(0, 1) > $rootScope.sortedListArray[j].title.substr(0, 1)) {
  1334 +
  1335 + var termText = $rootScope.sortedListArray[i].title;
  1336 + var termNumbr = $rootScope.sortedListArray[i].termNumbr;
  1337 + var termLanguage = $rootScope.sortedListArray[i].language;
  1338 +
  1339 + $rootScope.sortedListArray[i].title = $rootScope.sortedListArray[j].title;
  1340 + $rootScope.sortedListArray[i].termNumbr = $rootScope.sortedListArray[j].termNumbr;
  1341 + $rootScope.sortedListArray[i].language = $rootScope.sortedListArray[j].language;
  1342 +
  1343 + $rootScope.sortedListArray[j].title = termText;
  1344 + $rootScope.sortedListArray[j].termNumbr = termNumbr;
  1345 + $rootScope.sortedListArray[j].language = termLanguage;
  1346 + }
  1347 + }
  1348 + }
1349 1349
1350 for (var j = 0; j <= $rootScope.sortedListArray.length - 1; j++) { 1350 for (var j = 0; j <= $rootScope.sortedListArray.length - 1; j++) {
1351 var $selectedOptions = $('<option title= "' + $rootScope.sortedListArray[j].title + '" id= "' + $rootScope.sortedListArray[j].id + '" >' + $rootScope.sortedListArray[j].title + '</option>').appendTo("#termList") 1351 var $selectedOptions = $('<option title= "' + $rootScope.sortedListArray[j].title + '" id= "' + $rootScope.sortedListArray[j].id + '" >' + $rootScope.sortedListArray[j].title + '</option>').appendTo("#termList")