Some organisms use sulfur as an electron donor (a source

Some organisms use sulfur as an electron donor (a source of energy) whereas others use sulfur as an electron acceptor. How can this be if there must be a difference between the electron affinity of electron donors and acceptors for an organism to obtain energy?