Added median sort functionality to ARD reporting