Added sort functionality to ticket medium and preview overviews.