It's randomized, we can't set it.
However, alliances with the most members will appear on top.
Players seeking for alliance will only see alliances set to minimum glory they have.
What I have learned, if we kick 1-2 people from alliance, most likely our alliance will appear on top. And once 1 player join, usually 2, 3 more will follow, assuming they're not really picky players.