In marshaling assets, the court shall look to the equities of the creditors and, where cases arise for election, shall compel the parties to elect.