Added row sort to SparseMatrix