Wage Distribution and the Spatial Sorting of Workers and Firms