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")