JAL-3081 JAL-3199 no auto-sort of annotations after manual reordering
[jalview.git] / src / jalview / gui / AnnotationLabels.java
index 6da6cc3..2f62a41 100755 (executable)
@@ -22,6 +22,7 @@ package jalview.gui;
 
 import jalview.analysis.AlignSeq;
 import jalview.analysis.AlignmentUtils;
+import jalview.analysis.AnnotationSorter.SequenceAnnotationOrder;
 import jalview.datamodel.Alignment;
 import jalview.datamodel.AlignmentAnnotation;
 import jalview.datamodel.Annotation;
@@ -599,6 +600,7 @@ public class AnnotationLabels extends JPanel
 
       ap.av.getAlignment().getAlignmentAnnotation()[end] = startAA;
       ap.av.getAlignment().getAlignmentAnnotation()[start] = endAA;
+      av.setSortAnnotationsBy(SequenceAnnotationOrder.CUSTOM);
     }
 
     resizePanel = false;