Identifiable up to rearrangement

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