What is the meaning of the word "cock-a-hoop"?

Definitions: