public static int[] selectionSort(int[] array, boolean ascendingOrder) {
		if (array != null && array.length > 1) {
			int lengthLessOne = array.length - 1;
			int minValue;
			int minIndex;
			
			for (int i = 0; i < lengthLessOne; i++) {
				minValue = array[i];
				minIndex = i;
				for (int j = i + 1; j < array.length; j++) {
					if (Utils.compareOrder(minValue, array[j], ascendingOrder) == false) {
						minValue = array[j];
						minIndex = j;
					}
				}
				if (minIndex != i) {
					Utils.swap(array, i, minIndex);
				}
			}
		}
		return array;
	}