fix sorting for lower version of datatables