added datatable sort functionality