Just getting into AngularJS and I have a simple question.
When there is an 'orderBy', the $index references the sorted array. What is the simplest way to reference back to the original array index before the sort.
<div ng-init="names=['Jack Doe','Dave Smith','Jone Johnson','Nancy Doe','Adam Smith']">
<h3>Presenters</h3>
<ul>
<li ng-repeat="person in names | orderBy:'toString()'">
[{{$index+1}} : {{person}}]
</li>
</ul>
</div>