[as] chore: 체크리스트 정렬 코드 제거 (서버에 위임)

This commit is contained in:
2026-07-13 12:01:17 +09:00
parent d71f2043de
commit b41814ed0c
@@ -26,16 +26,6 @@ interface CklstResultListItem {
picRvwCn?: string | null;
}
function compareCklstSiblings(a: CklstTreeNode, b: CklstTreeNode): number {
if (a.cklstArtclSn !== b.cklstArtclSn) {
return a.cklstArtclSn - b.cklstArtclSn;
}
if (a.sortSeq !== b.sortSeq) {
return b.sortSeq - a.sortSeq;
}
return a.cklstRvwSn - b.cklstRvwSn;
}
export function orderCklstTreeNodes(rows: CklstTreeNode[]): CklstTreeNode[] {
const childMap = new Map<number | null, CklstTreeNode[]>();
@@ -45,8 +35,6 @@ export function orderCklstTreeNodes(rows: CklstTreeNode[]): CklstTreeNode[] {
childMap.get(parent)!.push(row);
});
childMap.forEach((siblings) => siblings.sort(compareCklstSiblings));
const ordered: CklstTreeNode[] = [];
function walk(parent: number | null) {