From 7649ba7a762d83b90e54a93540780a09c2797e92 Mon Sep 17 00:00:00 2001 From: Christoph Auer Date: Tue, 17 Dec 2024 17:13:38 +0100 Subject: [PATCH] Comment cleanup Signed-off-by: Christoph Auer --- docling/utils/layout_postprocessor.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/docling/utils/layout_postprocessor.py b/docling/utils/layout_postprocessor.py index 978de36b..8cb6bc55 100644 --- a/docling/utils/layout_postprocessor.py +++ b/docling/utils/layout_postprocessor.py @@ -328,16 +328,7 @@ class LayoutPostprocessor: contained.append(cluster) if contained: - # # Sort contained clusters by minimum cell ID: - # contained.sort( - # key=lambda cluster: ( - # min(cell.id for cell in cluster.cells) - # if cluster.cells - # else sys.maxsize - # ) - # ) - - # Sort contained clusters left-to-right, top-to-bottom + # Sort contained clusters by minimum cell ID: contained = self._sort_clusters(contained, mode="id") special.children = contained