diff --git a/pdfsam-ui-components/src/main/java/org/pdfsam/ui/components/selection/multiple/FileColumn.java b/pdfsam-ui-components/src/main/java/org/pdfsam/ui/components/selection/multiple/FileColumn.java index 6baba95f..623393e5 100644 --- a/pdfsam-ui-components/src/main/java/org/pdfsam/ui/components/selection/multiple/FileColumn.java +++ b/pdfsam-ui-components/src/main/java/org/pdfsam/ui/components/selection/multiple/FileColumn.java @@ -34,14 +34,12 @@ /** * Definition of the {@link File} columns of the selection table - * + * * @author Andrea Vacondio - * */ public enum FileColumn implements SelectionTableColumn { NAME { - @Override public String getColumnTitle() { return i18n().tr("Name"); @@ -85,7 +83,8 @@ public Float prefWidth() { @Override public Comparator comparator() { - return new NumericalSortFilenameComparator(Comparator.comparing(File::getName, Collator.getInstance())); + var collator = Collator.getInstance(); + return new NumericalSortFilenameComparator(collator::compare); } } } diff --git a/pom.xml b/pom.xml index a3e44fa6..9372cd91 100644 --- a/pom.xml +++ b/pom.xml @@ -290,7 +290,7 @@ 7.0.5.Final 5.0.11 4.0.0.M3 - 2.0.0 + 3.0.0 4.0.0 5.0.0 3.1.8