Added reverse sort functionality.