배열 sort 추가

This commit is contained in:
hyojun.choi 2025-03-13 12:28:17 +09:00
parent d60a38594c
commit aad5c42b25

View File

@ -619,6 +619,9 @@ export const useTrestle = () => {
//module Rack 정보를 얻기위한 데이터 가공
function moduleTransformData(arr) {
//arr의 moduleTpCd를 이용하여 정렬
arr = arr.sort((a, b) => a.moduleTpCd.localeCompare(b.moduleTpCd))
let counts = {}
arr.forEach((item) => {