Let $i=\sqrt{-1}$
$$\frac{1}{\sqrt{-i}}=\frac{1}{\sqrt{(-1)i}}=\frac{1}{i\sqrt{i}}=\frac{-i}{\sqrt{i}}$$
And
$$\frac{1}{\sqrt{-i}}=\sqrt{\frac{1}{-i}}=\sqrt{\frac{-1}{i}}=\frac{i}{\sqrt{i}}$$
However,
$$\frac{-i}{\sqrt{i}}\ne\frac{i}{\sqrt{i}}$$
Where did I go wrong?
You are applying some well-known properties of the square root: $$\sqrt{ab}=\sqrt{a}\sqrt{b} \quad \mbox{and} \quad \sqrt{\frac{a}{b}} = \frac{\sqrt{a}}{\sqrt{b}}$$ but these do not hold in general. You probably saw and maybe even proved these for positive real numbers $a$ and $b$, but now you're applying them in a more general context - probably without asking yourself it these properties are still valid.
See also: Square roots of negative numbers.