def sortPopulation(population, scores):
    """    
    This is used to sort the population according to the fitness values of the individuals
    
    Parameters
    ---------- 
    population : list
        The list of individuals
    scores : list
        The list of fitness values for each individual
          
    Returns
    -------
    list
        population: The new sorted list of individuals
    list
        scores: The new sorted list of fitness values of the individuals
    """
    sortedIndices = scores.argsort()
    population = population[sortedIndices]
    scores = scores[sortedIndices]
    
    return population, scores