Reorders to rows (corresponding to different clusters) of a matrix of medians to a desired order
Useful links