New formatter function first_matching_cmp