public static int[] bubbleSort(int[] array, boolean ascendingOrder) {
		if (array == null || array.length <= 1) {
			return array;
		}
		for (int i = 1; i < array.length; i++) {
			for (int j = 0; j < array.length - i; j++) {
				if (Utils.compareOrder(array[j], array[j + 1], ascendingOrder) == false) {
					Utils.swap(array, j, j + 1);
				}
			}
		}
		return array;
	}