on top
on top {adv.} or {adj. phr.}, {informal}
In the lead; with success; with victory.
The horse that everyone had expected would be on top actually came in third.
Although John had been afraid that he was not prepared for the exam, he came out on top.
Categories:
Source: A Dictionary of American Idioms