UNPKG

tabulator-tables

Version:

Interactive table generation JavaScript library

7 lines (6 loc) 255 B
//sort booleans export default function(a, b, aRow, bRow, column, dir, params){ var el1 = a === true || a === "true" || a === "True" || a === 1 ? 1 : 0; var el2 = b === true || b === "true" || b === "True" || b === 1 ? 1 : 0; return el1 - el2; }