Sort with PDFBox IterativeMergeSort instead of QuickSort
MSALPDFBox 2.0.25 replaced org.apache.pdfbox.util.QuickSort with IterativeMergeSort, and PDFBox 3.0 has no QuickSort. This sorts with IterativeMergeSort, in natural order where QuickSort was given no comparator. IterativeMergeSort is stable, so elements that the comparator finds equal keep the order they were in, where QuickSort could swap them.
org. openrewrite. apache. pdfbox. MigrateQuickSortmod run . --recipe= org. openrewrite. apache. pdfbox. MigrateQuickSortInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.