Fixed sorting for datatables