The court on Wednesday extended the stay on the ASI survey of the Gyanvapi mosque premises