sorts expected, not refs