I did both, avionics first. Had to keep quiet about it in order to get engine airframe work though!
Obviously automated systems are easier to understand when you have an electronics background.
I would say that it is easier for an avionics man to adapt to the heavy metal than a man with years of the mindset that deals with engine/airframe problems, to come to terms with black boxes.