minor change - Solve #415

pull/416/head
duongtd96 6 years ago
parent b9fc3537f1
commit 53c1859d1f

@ -83,10 +83,10 @@ $.fn.dataTable.ext.order.intl = function ( locales, options ) {
// only compare inner text
delete types.order['html-pre'];
types.order['html-asc'] = function (a, b) {
return collator.compare( $(a)[0].innerHTML, $(b)[0].innerText );
return collator.compare($(a).text(), $(b).text());
}
types.order['html-desc'] = function ( a, b ) {
return collator.compare( $(a)[0].innerHTML, $(b)[0].innerText ) * -1;
return collator.compare($(a).text(), $(b).text()) * -1;
};
}
};

Loading…
Cancel
Save