From 515f011045336a8906b4ebae744bb240a8eb996e Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 29 Nov 2017 18:08:19 +0530 Subject: [PATCH] Commit Changes --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js index 57127a7..84acbbc 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js @@ -1326,26 +1326,26 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou } - //for (var i = 0; i <= $rootScope.sortedListArray.length - 1; i++) { + for (var i = 0; i <= $rootScope.sortedListArray.length - 1; i++) { - // for (j = i + 1; j <= $rootScope.sortedListArray.length - 1; j++) { + for (j = i + 1; j <= $rootScope.sortedListArray.length - 1; j++) { - // if ($rootScope.sortedListArray[i].title.substr(0, 1) > $rootScope.sortedListArray[j].title.substr(0, 1)) { - - // var termText = $rootScope.sortedListArray[i].title; - // var termNumbr = $rootScope.sortedListArray[i].termNumbr; - // var termLanguage = $rootScope.sortedListArray[i].language; - - // $rootScope.sortedListArray[i].title = $rootScope.sortedListArray[j].title; - // $rootScope.sortedListArray[i].termNumbr = $rootScope.sortedListArray[j].termNumbr; - // $rootScope.sortedListArray[i].language = $rootScope.sortedListArray[j].language; - - // $rootScope.sortedListArray[j].title = termText; - // $rootScope.sortedListArray[j].termNumbr = termNumbr; - // $rootScope.sortedListArray[j].language = termLanguage; - // } - // } - //} + if ($rootScope.sortedListArray[i].title.substr(0, 1) > $rootScope.sortedListArray[j].title.substr(0, 1)) { + + var termText = $rootScope.sortedListArray[i].title; + var termNumbr = $rootScope.sortedListArray[i].termNumbr; + var termLanguage = $rootScope.sortedListArray[i].language; + + $rootScope.sortedListArray[i].title = $rootScope.sortedListArray[j].title; + $rootScope.sortedListArray[i].termNumbr = $rootScope.sortedListArray[j].termNumbr; + $rootScope.sortedListArray[i].language = $rootScope.sortedListArray[j].language; + + $rootScope.sortedListArray[j].title = termText; + $rootScope.sortedListArray[j].termNumbr = termNumbr; + $rootScope.sortedListArray[j].language = termLanguage; + } + } + } for (var j = 0; j <= $rootScope.sortedListArray.length - 1; j++) { var $selectedOptions = $('').appendTo("#termList") -- libgit2 0.21.4