Once upon a time when lord Ganesha and lord Karthikeya were gossiping and the question came to there power lord karthikeya asked to his small brother "brother you have more power than me?"Then ganesha told to brother karthikeya that
"Big brother you are elder than me so definitely you are more powerful than me" but after the praising also lord karthikeya refused to agree it.
And finally lord karthikeya agreed.But he had a bet! Both lord ganesha and himself(ld kartikeya) should go for revolving the earth and who arrives first after revolving the earth are powerful than other.
lord kartikeya leaved kailasa on the peacock for revolving the earth after lord kartikeya's absence on kailasa lord ganesha like a cool guy continued playing with a mice(mushakraj, king of all mice's)who was his best friend.
seeing the strange behaviour of lord ganesha, lord shiva and lordess parvati asked lord ganesha why you were not leaving kailsa and not arriving to take part in the event.
seeing the excitement of lord shiva and lordess parvati to know the answer lord ganesha answered "Mother I had read in the vedas and puranas that you are the symbol of earth.
So if I start revolving you instead of revolving the earth
Then I will be the winner of this event and lord ganesha started revolving lord shiva and parvati and completed the bet before lord kartikeya and become the winner.
Like that way lord ganesha has proved his intellegence and dignity apart from being smaller than lord kartikeya.