fix sorting in datatables