MCPcopy Create free account
hub / github.com/compat-table/compat-table / comparator

Function comparator

master.js:484–486  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

482
483 // Define a comparison function using the orderings
484 var comparator = function (a, b) {
485 return ord.indexOf(platformOf(a)) - ord.indexOf(platformOf(b));
486 };
487
488 // Now sort the columns using the comparison function
489 table.detach().find('tr').each(function (i, row) {

Callers

nothing calls this directly

Calls 1

platformOfFunction · 0.85

Tested by

no test coverage detected