Question: When I try to orderBy a property that I am binding to in a `ng-repeat` I get a `$digest` error.
I think it is occurring because in one digest the `ng-model` value is updating, which effects the parents `orderBy` clause. I do not know how to get around this. 

Plunker (Update)
----------------

This shows the issue occurring. Be sure to open the console!

<http://embed.plnkr.co/rGLagq/preview>

JS
--

```
var options = [
    {
        name: 'test',
        isSelected: true
    }, 
    {
        name: 'another test',
        isSelected: false
    }
];

```

HTML
----

```
<div ng-repeat="option in options | orderBy:'-isSelected'">
        <label>
             <input type="checkbox"
                    ng-model="option.isSelected"> {{option.name}}
        </label>
    </div>

```

Error
-----

```
Error: [$rootScope:inprog] $digest already in progress

```

Answer: 
This issue is caused by a bug in angular:

<https://github.com/angular/angular.js/issues/10014>

Should hopefully be fixed by: <https://github.com/angular/angular.js/pull/9808>

Target fix version: `1.3.4`
Make sure you don't have manual calls like $scope.$apply() or $scope.$digest in your code that will kick off digest cycles manually. The code you are showing here should be ok.