MCPcopy Create free account
hub / github.com/apache/cloudstack / reverseComparator

Function reverseComparator

tools/ngui/static/js/lib/angular.js:10442–10446  ·  view source on GitHub ↗
(comp, descending)

Source from the content-addressed store, hash-verified

10440 return 0;
10441 }
10442 function reverseComparator(comp, descending) {
10443 return toBoolean(descending)
10444 ? function(a,b){return comp(b,a);}
10445 : comp;
10446 }
10447 function compare(v1, v2){
10448 var t1 = typeof v1;
10449 var t2 = typeof v2;

Callers 1

orderByFilterFunction · 0.85

Calls 1

toBooleanFunction · 0.85

Tested by

no test coverage detected