Rank the substituents in each of the following sets according to the CahnIngold-Prelog rules:
(a) $-\mathrm{H},-\mathrm{OH},-\mathrm{CH}_{2} \mathrm{CH}_{3},-\mathrm{CH}_{2} \mathrm{CH}_{2} \mathrm{OH}$
(b) $-\mathrm{CO}_{2} \mathrm{H},-\mathrm{CO}_{2} \mathrm{CH}_{3},-\mathrm{CH}_{2} \mathrm{OH},-\mathrm{OH}$
(c) $-\mathrm{CN},-\mathrm{CH}_{2} \mathrm{NH}_{2},-\mathrm{CH}_{2} \mathrm{NHCH}_{3},-\mathrm{NH}_{2}$
(d) $-\mathrm{SH},-\mathrm{CH}_{2} \mathrm{SCH}_{3},-\mathrm{CH}_{3},-\mathrm{SSCH}_{3}$