UNPKG

tabulator-tables

Version:

Interactive table generation JavaScript library

7 lines (6 loc) 215 B
//sort if element contains any data export default function(a, b, aRow, bRow, column, dir, params){ var el1 = typeof a == "undefined" ? 0 : 1; var el2 = typeof b == "undefined" ? 0 : 1; return el1 - el2; }