Rank the compounds in each of the following groups in order of increasing acidity or basicity, as indicated, and explain the order you assign.
(a) acidity: $\mathrm{NaHSO}_{3}, \mathrm{NaHSeO}_{3}, \mathrm{NaHSO}_{4}$
(b) basicity: $\mathrm{BrO}_{2}^{-}, \quad \mathrm{ClO}_{2}^{-}, \quad \mathrm{IO}_{2}^{-}$
(c) acidity: $\mathrm{HOCl}$, $\mathrm{HOBr}$, HOI
(d) acidity: $\mathrm{HOCl}, \mathrm{HOClO}, \mathrm{HOClO}_{2}, \mathrm{HOClO}_{3}$
(e) basicity: $\mathrm{NH}_{2}^{-}, \mathrm{HS}^{-}, \mathrm{HTe}^{-}, \mathrm{PH}_{2}^{-}$
(f) basicity: $\mathrm{BrO}^{-}, \mathrm{BrO}_{2}^{-}, \quad \mathrm{BrO}_{3}^{-}, \quad \mathrm{BrO}_{4}^{-}$