public static void partialSort(Ant[] population, int number) {

		for (int i = 0; i < number; i++) {

			int best = i;
			for (int j = i+1; j < population.length; j++) {
				//see compareTO() method specification
				if (population[best].compareTo(population[j]) == 1) {
					best = j;
				}
			}
			if (best != i) {
				Ant tmp = population[i];
				population[i] = population[best];
				population[best] = tmp;
			}

		}

	}