Update Sort class.