@Override
	protected void sort(T[] array, int leftIndex, int rightIndex) {
		
		for (int i = leftIndex; i <= rightIndex; i++) {
			int min = i;
			for (int j = i + 1; j <= rightIndex; j++) {
				if (array[j].compareTo(array[min]) < 0) {
					min = j;
				}
			}
			
			T aux = array[i];
			array[i] = array[min];
			array[min] = aux;
			
		}
	}