sort+str_match+diffpar merged into algorithm