Ganon doesn't exist in either Termina or the land and time before Hyrule. Demise is his precursor. Same with Link's Awakening, actually: as that game takes place within a dream, there is nothing that can be more powerful than the nightmares that Link fights.Majora and Demise aren't stronger than Ganon. Hylia went on a stalemate with Demise while the 3 Golden Goddess couldn't defeat Ganon.
Regarding the use of the goddesses to make a power ranking, I cannot remember whether Ganon actually fought the goddesses the way Hylia fought Demise. I may be forgetting something. The Golden Goddesses do temporarily bury Ganondorf under the sea, essentially doing to him what Hylia did to Demise.