1 jQuery.extend( jQuery.fn.dataTableExt.oSort, {
2 "title-string-pre": function ( a ) {
3 var retThis = a.match(/title="(.*?)"/)
4 if (typeof(retThis) != "undefined" && retThis != null)
5 return retThis[1].toLowerCase();
7 return $(a).prop("title").toLowerCase();
10 "title-string-asc": function ( a, b ) {
11 return ((a < b) ? -1 : ((a > b) ? 1 : 0));
14 "title-string-desc": function ( a, b ) {
15 return ((a < b) ? 1 : ((a > b) ? -1 : 0));
20 jQuery.extend( jQuery.fn.dataTableExt.oSort, {
21 "title-numeric-pre": function ( a ) {
22 var x = a.match(/title="*(-?[0-9\.]+)/)[1];
23 return parseFloat( x );
26 "title-numeric-asc": function ( a, b ) {
27 return ((a < b) ? -1 : ((a > b) ? 1 : 0));
30 "title-numeric-desc": function ( a, b ) {
31 return ((a < b) ? 1 : ((a > b) ? -1 : 0));