Added sort functionality to dashboard including export