The NSW government has ordered five Sydney cemetery operators will merge into a single entity.