isSorted = array => {
	for (let i = 1; i < array.length; i++) {
		if (array[i - 1] > array[i]) return false;
	}
	return true;
}
@param {string[]} array an array
@returns {boolean} true, if the array is sorted