Capillary Sorting of Particles by Dip Coating