diff --git a/apps/as/src/widgets/pbadms-sprt/lib/checklist-form-utils.ts b/apps/as/src/widgets/pbadms-sprt/lib/checklist-form-utils.ts index f49782d84..2c43aca43 100644 --- a/apps/as/src/widgets/pbadms-sprt/lib/checklist-form-utils.ts +++ b/apps/as/src/widgets/pbadms-sprt/lib/checklist-form-utils.ts @@ -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(); @@ -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) {