Trademark applications filed on the same date?

What if 2 or more trademark applications relating to identical or similar mark which are to be  used on identical or similar goods or services are filed on different dates?

Where  two  or  more  mark applications relating to identical or similar mark which are to be  used on identical or similar goods or services are filed on different dates, the registrar may refuse to register any of them until  the  rights  of  those  applicants  have,  upon  application   in   the  prescribed  manners,  been  determined by him, or have been settled by agreement in a manner approved by him.