Skip to content

Commit 179c6f3

Browse files
committed
Use custom sort in SpreadsheetExtractionAlgorithm
1 parent 741cc0f commit 179c6f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/technology/tabula/extractors/SpreadsheetExtractionAlgorithm.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@ public static List<Rectangle> findSpreadsheetsFromCells(List<? extends Rectangle
241241
int i = 0;
242242

243243
cells = new ArrayList<Rectangle>(new HashSet<Rectangle>(cells));
244-
245-
Collections.sort(cells);
246-
244+
245+
Utils.sort(cells);
246+
247247
for (Rectangle cell: cells) {
248248
for(Point2D pt: cell.getPoints()) {
249249
if (pointSet.contains(pt)) { // shared vertex, remove it

0 commit comments

Comments
 (0)