(2)When such application is made and allowed, and when, in the case of an application under sub-Section (1) of section 165, the deposit required by that sub-section is made within thirty days from the date of the sale, the Court shall make an order setting aside the sale :Provided that no order shall be made unless notice of the application has been given to all persons affected thereby.