Mandamus writ is issued by the court to order an authority to perform a function which was not performing.