function copySorted(arr) {
    return arr
        .map(e => e)
        .sort();
}

function copySorted(arr) {
    return arr.slice().sort();
  }


앰창