public static void nextPermutation(int[] num) {
		if (num == null)
			return;
		if (num.length == 0)
			return;
		if (num.length == 1)
			return;
		if (checkOrder(num)) {
			reverse(num);
		} else {
			changeOrder(num);
		}
	}