title: random orderBy in AngularJS 1.2 returns 'infdig' errors
body: <p>Using the random <code>orderBy</code> sort technique in <a href="https://stackoverflow.com/q/17101989/901048">this question</a> works fine in AngularJS 1.1. </p>
  
  <pre><code>var myApp = angular.module('myApp',[]);
  
  function MyCtrl($scope) {
      $scope.list = ['a', 'b', 'c', 'd', 'e', 'f', 'g'];
      $scope.random = function() {
          return 0.5 - Math.random();
      }
  }
  </code></pre>
  
  <p>In 1.2, though, it puts <code>infdig</code> errors into the console and takes a much longer time to return the sorted results:  <a href="http://jsfiddle.net/mblase75/jVs27/" rel="nofollow noreferrer">http://jsfiddle.net/mblase75/jVs27/</a></p>
  
  <p>The error in the console looks like:</p>
  
  <pre><code>Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
  Watchers fired in the last 5 iterations: [["fn: $watchCollectionWatch; newVal: 42; oldVal: 36"],["fn: $watchCollectionWatch; newVal: 47; oldVal: 42"],["fn: $watchCollectionWatch; newVal: 54; oldVal: 47"],["fn: $watchCollectionWatch; newVal: 61; oldVal: 54"],["fn: $watchCollectionWatch; newVal: 68; oldVal: 61"]]
  </code></pre>
  
  <p><a href="http://code.angularjs.org/1.2.10/docs/api/ng.filter:orderBy" rel="nofollow noreferrer">The documentation for <code>orderBy</code></a> doesn't have an example of using function expressions, only string expressions. Did something change, or is this a bug?</p>