https://imswengineer.tistory.com/183 [js] 숫자 배열 정렬하기 - sort() // 배열 오름차순 정렬 function Ascending(arr){ arr.sort((a, b)=> a - b); } // 배열 내림차순 정렬 function descending(arr){ arr.sort((a, b)=> b - a); } ( sort () 함수 ( Array.prototype.sort )는 파라미터를 생략할 경우 문자열 imswengineer.tistory.com 정렬함수로 sort()를 포스팅 했었는데, 2차원 배열에서 인덱스 0값끼리를 기준으로, 1인값끼리 기준으로 배열을 정렬하려고 하였다. https://cocococo.tistory.com/entry/JavaScript..