I have an array of objects where most of the parameters are functions that are passed different parameters. Is it possible to use Angular's orderBy filter with these properties? One variation of what I've tried that's not working:
<tr ng-repeat="warrior in warriors | orderBy: dps(vm.orderTarget)">
<td>{{warrior.name}}</td>
<td>{{warrior.dps(vm.target1)}}</td>
<td>{{warrior.dps(vm.target2)}}</td>
<td>{{warrior.dps(vm.target3)}}</td>
</tr>
vm? Can you explain it more?