If two candidates are equal in legal knowledge, what comes next?

Congregational Prayer: Its Status, Priority in Leading, and Conduct of the Imam