function sort(array, start = 0) {
  for(let i = start; i < array.length; i++) {
    for (let j = i + 1; j < array.length; j++) {
      if (array[i] > array[j]) {
        [array[i], array[j]] = [array[j], array[i]];
      }
    }
  }
}
Sort in-place from start on
@param {*} array
@param {*} start