Add spec for period sorting; clarify <=> method.