I feel like the answer to this problem is staring me right in the face, but no matter how hard I look, I just can't seem to find it.
When dealing with a large ng-repeat, I have multiple sort options that I pass as an array. The user has the ability to choose how they want the data sorted.
Sorting from A-Z works perfectly fine, but for some reason sorting from Z-A is not functioning as expected.
Check out this interactive demonstration on Fiddle http://jsfiddle.net/Tk39P/4/
The code I am using is very similar to what I've successfully implemented in other Angular applications:
return -result.whatever;
So, where did I make a mistake? :) Thanks!