Complex sentence: Courts may order all parties to share in the cost, or the court may order a particular party to pay the fees.
Split into simpler sentences: Courts may order all parties to share in the cost. Or, the court may order a particular party to pay the fees.