title: AngularJS OrderBy not working in angular 1.5
body: <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
  &lt;head&gt;
      &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.2/angular.min.js"&gt;&lt;/script&gt;
      &lt;script&gt;
      angular.module('sortApp', [])
  
      .controller('mainController', function($scope) {
          $scope.sortType = 'name'; // set the default sort type
          $scope.sortReverse = false; // set the default sort order
          $scope.searchFish = ''; // set the default search/filter term
  
          // create the list of sushi rolls 
          $scope.sushi = [{
              name: 'Cali Roll',
              fish: 'Crab',
              tastiness: 2
          }, {
              name: 'Philly',
              fish: 'Tuna',
              tastiness: 2
          }, {
              name: 'Tiger',
              fish: 'Eel',
              tastiness: 2
          }, {
              name: 'Rainbow',
              fish: 'Variety',
              tastiness: 2
          }];
  
      });
      &lt;/script&gt;
      &lt;link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootswatch/3.2.0/sandstone/bootstrap.min.css"&gt;
      &lt;link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css"&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;div class="container" ng-app="sortApp" ng-controller="mainController"&gt;
          &lt;table class="table table-bordered table-striped"&gt;
              &lt;thead&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                          &lt;a href="#" ng-click="sortType = 'name'; sortReverse = !sortReverse"&gt;
              Sushi Roll 
              &lt;span ng-show="sortType == 'name' &amp;&amp; !sortReverse" class="fa fa-caret-down"&gt;&lt;/span&gt;
              &lt;span ng-show="sortType == 'name' &amp;&amp; sortReverse" class="fa fa-caret-up"&gt;&lt;/span&gt;
            &lt;/a&gt;
                      &lt;/td&gt;
                      &lt;td&gt;
                          &lt;a href="#" ng-click="sortType = 'fish'; sortReverse = !sortReverse"&gt;
            Fish Type 
              &lt;span ng-show="sortType == 'fish' &amp;&amp; !sortReverse" class="fa fa-caret-down"&gt;&lt;/span&gt;
              &lt;span ng-show="sortType == 'fish' &amp;&amp; sortReverse" class="fa fa-caret-up"&gt;&lt;/span&gt;
            &lt;/a&gt;
                      &lt;/td&gt;
                      &lt;td&gt;
                          &lt;a href="#" ng-click="sortType = 'tastiness'; sortReverse = !sortReverse"&gt;
            Taste Level 
              &lt;span ng-show="sortType == 'tastiness' &amp;&amp; !sortReverse" class="fa fa-caret-down"&gt;&lt;/span&gt;
              &lt;span ng-show="sortType == 'tastiness' &amp;&amp; sortReverse" class="fa fa-caret-up"&gt;&lt;/span&gt;
            &lt;/a&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/thead&gt;
              &lt;tbody&gt;
                  &lt;tr ng-repeat="roll in sushi | orderBy:sortType:sortReverse"&gt;
                      &lt;td&gt;{{ roll.name }}&lt;/td&gt;
                      &lt;td&gt;{{ roll.fish }}&lt;/td&gt;
                      &lt;td&gt;{{ roll.tastiness }}&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/tbody&gt;
          &lt;/table&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>I was using the table sorter shown in the example here <a href="https://scotch.io/tutorials/sort-and-filter-a-table-using-angular" rel="nofollow noreferrer">https://scotch.io/tutorials/sort-and-filter-a-table-using-angular</a> , But I recently had an issue, I'm using angular 1.5 now, and for version >=1.5 the ordrBy behaves strangely, For Ex: If all the values in a column are same, still it changes row.If I change the angular version to any version &lt; 1.5, you can see that the third column doesn't sort or change row order since the column entries are the same. I wanted the same effect while using angular 1.5</p>