Peer Group Effects, Sorting, and Fiscal Federalism