list the order by which an electromagnet operates:

A. metal wire = = > Magnetic field = = > Electric current

B. Magnetic Field = = > loops of wire = = Electric Current

C. Electric current = = > Compass = = > Magnetic Field

D. Loops of Wire = = > Electric current = = > Magnetic Field