fix for arrays.js quicksort() to be stable by comparing original indices inside of a wrapped predicate call (note that es6 is not changed, the orderBy methods of keys and map arrays should be used moving forward with es6)