`match_array` will look for all the items in the array without respecting order. We can get rid of the `sort` here and everywhere else we use `match_array`.