The application may be in the alternative for partition, if practicable or advisable, and, if otherwise, for a sale.