Add sort functionality to comparison columns