Households "sort" across neighborhoods according to their wealth and their preferences for public goods, social characteristics, and commuting opportunities. The aggregation of these individual choices in markets and in other institutions influences the supply of amenities and local public...