Fix the identity sort regression
Beef up tests
Merge pull request #640 from twitter/projection_bug

Fix the identity sort regression