(value, index)
| 23842 | return array; |
| 23843 | |
| 23844 | function getComparisonObject(value, index) { |
| 23845 | // NOTE: We are adding an extra `tieBreaker` value based on the element's index. |
| 23846 | // This will be used to keep the sort stable when none of the input predicates can |
| 23847 | // distinguish between two elements. |
| 23848 | return { |
| 23849 | value: value, |
| 23850 | tieBreaker: {value: index, type: 'number', index: index}, |
| 23851 | predicateValues: predicates.map(function(predicate) { |
| 23852 | return getPredicateValue(predicate.get(value), index); |
| 23853 | }) |
| 23854 | }; |
| 23855 | } |
| 23856 | |
| 23857 | function doComparison(v1, v2) { |
| 23858 | for (var i = 0, ii = predicates.length; i < ii; i++) { |
nothing calls this directly
no test coverage detected