Hello sir!
Under the Partition Act of 1893, in case of a suit for partition, if it appears to the Court that the partition of the property cannot reasonably happen or sale of the property is more beneficial, then the Court may, on the request of the shareholders interested, direct the sale of the property and distribution of proceeds. The provisions of the Act also deal with the rights of the member of the family to purchase the share of the stranger ‘suing’ for partition. Under section 9 of the Act, it gives power to the Court to distribute the property equally and make the sale of reminder property and to distribute the proceeds.
You can also opt for partition through Court but before filing a partition suit, a legal notice must be served to all the co-owners specifying their interest in the property, their share, and the action to be taken and try to settle the dispute. Even after this, if the dispute is not settled, then a civil suit is filed before the Court.
Kindly refer to the below mentioned link:-
https://www.lawyersclubindia.com/articles/partition-suit-principles-practices--10449.asp