Reorder the columns of a component matrix P by decreasing
variances of components where the block-components come first, the
difference components afterwards.
Usage
sortmatrix(S, P)
Arguments
S
correlation/covariance matrix
P
component matrix
Value
numeric matrix which is just P with columns reordered.