reorder matrix methods