ENH: Swap rows in sparsefuncs

Numpy version of https://github.com/scikit-learn/scikit-learn/pull/3087

cc @jaidevd @jnothman