Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2023년 7월.
TypedArray 인스턴스의 toSorted() 메서드는 sort() 메서드의 복사버전입니다. 이 메서드는 오름차순으로 정렬된 요소를 가지는 새로운 형식화 배열을 반환합니다. 기본적으로는 문자열 대신 값을 산술적으로 정렬한다는 점 외에는 이 메서드는 Array.prototype.toSorted()와 같은 알고리즘을 가지고 있습니다.
요소 순서를 결정하는 함수입니다. 생략하면 배열 요소는 숫자 값에 따라 정렬됩니다. 자세한 정보는 sort()를 참고하시기 바랍니다.
오름 차순으로 정렬된 요소가 있는 새로운 형식화 배열.
자세한 정보는 Array.prototype.toSorted()을 참고하시기 바랍니다. 이 메서드는 범용 메서드가 아니며, 형식화 배열 인스턴스에서만 호출할 수 있습니다.
더 많은 예제는 Array.prototype.sort()를 참고하시기 바랍니다.
| ECMAScript® 2027 Language Specification # sec-%typedarray%.prototype.tosorted |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025년 6월 24일 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.