Fix the identity sort regression