I'm assuming you already have the fitness of each population according to the minimization objective. If this is the case, you will simply obtain the index order from the "sort" function while using the "direction" parameter.
sortedIndex = sort(fitnessVector, ,'ascend');
If you found this answer to be correct, please accept it. Otherwise, please add aditional comments so that it may be improved.