Something like transform.ordered might work. But I need to sort both row and columns by the ordering of row sums.
transform.ordered