dist/lib/thirdparty/sorttable.js
function sort_numeric(a, b) {
    var aa = void 0,
        bb = void 0;
    aa = parseFloat(a[0].replace(/[^0-9.-]/g, ''));
    if (isNaN(aa)) aa = 0;
    bb = parseFloat(b[0].replace(/[^0-9.-]/g, ''));
    if (isNaN(bb)) bb = 0;
    return aa - bb;
  }
function sort_numeric(a, b) {
    var aa = void 0,
        bb = void 0;
    aa = parseFloat(a[0].replace(/[^0-9.-]/g, ''));
    if (isNaN(aa)) aa = 0;
    bb = parseFloat(b[0].replace(/[^0-9.-]/g, ''));
    if (isNaN(bb)) bb = 0;
    return aa - bb;
  }
function sort_numeric ( a , b ) { var aa = void 0 , bb = void 0 ; aa = parseFloat ( a [ 0 ] . replace ( / [^0-9.-] / g , '' ) ) ; if ( isNaN ( aa ) ) aa = 0 ; bb = parseFloat ( b [ 0 ] . replace ( / [^0-9.-] / g , '' ) ) ; if ( isNaN ( bb ) ) bb = 0 ; return aa - bb ; }
/* sort functions
each sort function takes two parameters, a and b
you are comparing a[0] and b[0]
/ * sort functions each sort function takes two parameters a and b you are comparing a [ 0 ] and b [ 0 ]