Where more petitions than one relating to the same election or return are presented, all such petitions shall be dealt with as one petition, in such manner and on such terms as a judge may direct.