Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / static / im / js / dataTables.numbersHTML.js @ 36dacb92

History | View | Annotate | Download (383 Bytes)

1
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
2
    "num-html-pre": function ( a ) {
3
        var x = String(a).replace( /<[\s\S]*?>/g, "" );
4
        return parseFloat( x );
5
    },
6
 
7
    "num-html-asc": function ( a, b ) {
8
        return ((a < b) ? -1 : ((a > b) ? 1 : 0));
9
    },
10
 
11
    "num-html-desc": function ( a, b ) {
12
        return ((a < b) ? 1 : ((a > b) ? -1 : 0));
13
    }
14
} );