Where more than one election petition relating to the same election or return is presented, all the election petitions must be consolidated and heard, in the manner and on such terms, as the judge directs.