The application for a sale of the premises is made by bill or petition, under the same rules and regulations that govern the application for partition.