Matching, Sorting, and the Distributional Effects of International Trade