The said apportionment and distribution of the water shall be made in accordance with the rights of each ditch, and in proportion to the lands irrigated by each ditch.