Books
He was like a cock who thought the sun had risen to hear him crow.
— George Eliot • Adam Bede

Behind the line May contain spoilers.
Our reading
An editorial interpretation.
The rooster imagines that the sun rises for his benefit. Used to describe a person, that image makes pride look ridiculous: an event far beyond his control becomes a response to his own voice. The comparison catches someone mistaking importance to himself for importance to everything.
Context reviewed