Datatables sorting - how to ignore text in column?
问题 I have used this script to sort my datatable and ignore text that I do not want to sort, I'll explain. this is the column example: 10,836 ↑(10.71%) 14,836 ↑(13.71%) I want to ignore this: ↑(10.71%) and to sort according to this: 10,836. thats my script: jQuery.extend(jQuery.fn.dataTableExt.oSort, { "justNum-pre": a => parseFloat(a.replace(/\D/g, "")), "justNum-asc": (a, b) => a - b, "justNum-desc": (a, b) => b - a }); $(document).ready(function () { var table = $('#dataTable').DataTable({