public static boolean isSorted(final int[] items) {
        for (int i = 0; i < items.length - 1; i++) {
            if (items[i + 1] < items[i]) {
                return false;
            }
        }
        return true;
    }