Unless otherwise ordered by the court, the successful party at the end would be justified with all expediency in demanding compensation and being placed in the same situation in which it would have been if the interim order would not have been passed against it. The successful party can demand (a) the delivery of benefit earned by the opposite party under the interim order of the court, or (b) to make restitution for what it has lost; and it is the duty of the court to do so unless it feels that in the facts and on the circumstances of the case, the restitution far from meeting the ends of justice, would rather defeat the same. Undoing the effect of an interim order by resorting to principles of restitution is an obligation of the party, who has gained by the interim order of the court, so as to wipe out the effect of the interim order passed which, in view of the reasoning adopted by the court at the stage of final decision, the court earlier would not or ought not to have passed.