public static boolean isSorted(Comparable[] a, int lo, int hi)
	{ // Test whether the array entries are in order.
		for (int i = lo + 1; i <= hi; i++)
			if (less(a[i], a[i - 1]))
				return false;
		return true;
	}