according to the values of outTheta and outPerm the function returns
the sorted stochastic block model parameter or the associated permutation of
the blocks of the stochastic block model or a list with both of them
Arguments
thetaInit
stochastic block model parameter to be sorted
outTheta
if TRUE returns the sorted stochastic block model parameter
outPerm
if TRUE returns the permutation of the blocks of the
stochastic block model to provide the sorted stochastic block model
parameter