Two objects having the same internal energy may have different temperatures if their masses and specific heats are different and it's possible that an object with more eternal energy may be at a lower temperature than the one with less internal energy.