X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fanalysis%2FAnnotationSorter.java;h=c9ed5705313ab89a69396ce42bb912dcaad59e7b;hb=efff0826d9368314db6215e90a856059b86dbea8;hp=9e35330b8fb9f74869c97379d05422fc8b64fa65;hpb=838e4f91d4a53dd315640dbc9ff6ef7a815ee576;p=jalview.git diff --git a/src/jalview/analysis/AnnotationSorter.java b/src/jalview/analysis/AnnotationSorter.java index 9e35330..c9ed570 100644 --- a/src/jalview/analysis/AnnotationSorter.java +++ b/src/jalview/analysis/AnnotationSorter.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b1) - * Copyright (C) 2015 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -20,6 +20,8 @@ */ package jalview.analysis; +import java.util.Locale; + import jalview.datamodel.AlignmentAnnotation; import jalview.datamodel.AlignmentI; import jalview.datamodel.SequenceI; @@ -50,8 +52,8 @@ public class AnnotationSorter public enum SequenceAnnotationOrder { // Text descriptions surface in the Preferences Sort by... options - SEQUENCE_AND_LABEL("Sequence"), LABEL_AND_SEQUENCE("Label"), NONE( - "No sort"); + SEQUENCE_AND_LABEL("Sequence"), LABEL_AND_SEQUENCE("Label"), + NONE("No sort"); private String description; @@ -108,7 +110,8 @@ public class AnnotationSorter * */ @@ -169,7 +172,8 @@ public class AnnotationSorter * */ @@ -278,7 +282,8 @@ public class AnnotationSorter // cache 'alignment sequence position' for the annotations saveSequenceIndices(alignmentAnnotations); - Comparator comparator = getComparator(order); + Comparator comparator = getComparator( + order); if (alignmentAnnotations != null) { @@ -365,7 +370,7 @@ public class AnnotationSorter { return 1; } - return label1.toUpperCase().compareTo(label2.toUpperCase()); + return label1.toUpperCase(Locale.ROOT).compareTo(label2.toUpperCase(Locale.ROOT)); } /**