Endogenous Ranking in the Two-Sector Urn-Ball Matching Process