Reorder the columns of a component matrix `P`

by decreasing
variances of components where the block-components come first, the
difference components afterwards.

1 | ```
sortmatrix(S, P)
``` |

`S` |
correlation/covariance matrix |

`P` |
component matrix |

numeric matrix which is just `P`

with columns reordered.

`sca`

, also for references

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.