Which Russian ruler came first Ivan the Great or Ivan the Terrible?

Ivan the Great (Ivan III)

then Ivan the terrible (Ivan IV)

Ivan the Great came first