Properly ordering row-major/col-major sorting by not only row/col but also sort each row/col in ascending order as well. Also writing getRaw and testing