It shall be lawful for the court, in rendering judgment of partition, to order and direct that any number of shares be set off together in one parcel, and that the residue be divided among the other parties, according to their several rights.