MAGICSORT: Returns a sorted data matrix

Description

Sort the rows and columns of a matrix in a "magic" order or by ascending (or descending) mean or median or geometrical mean.

Results

Example 1   Example 2