sort candidates table