Sort values using the same function provided to dataTable.order