@hmcts/ccd-case-ui-toolkit 7.0.26 → 7.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21457,10 +21457,11 @@ class CaseFileViewFolderComponent {
21457
21457
  newDocumentTreeNode.name = node.category_name;
21458
21458
  newDocumentTreeNode.type = DocumentTreeNodeType.FOLDER;
21459
21459
  newDocumentTreeNode.children = [...this.generateTreeData(node.sub_categories), ...this.getDocuments(node.documents)];
21460
+ newDocumentTreeNode.category_order = node.category_order;
21460
21461
  return [
21461
21462
  ...tree,
21462
21463
  newDocumentTreeNode,
21463
- ];
21464
+ ].sort((a, b) => a.category_order - b.category_order);
21464
21465
  }, []);
21465
21466
  }
21466
21467
  getDocuments(documents) {