I have a matrix with entries out of order. As an example, A = [a1, a2] is the typical matrix with partitions a1 and a2 (a1 and a2 aren\'t necessarily scalars bu
A = [a1, a2]