Anatomy of Party Sorting: Partisan Polarization of Voters and Party Switching