JAL-1152 with sticky annotation sort order that updates as sequences are
[jalview.git] / src / jalview / gui / PopupMenu.java
index 8e0e6e3..175adea 100644 (file)
@@ -23,6 +23,7 @@ package jalview.gui;
 import jalview.analysis.AAFrequency;
 import jalview.analysis.AlignmentAnnotationUtils;
 import jalview.analysis.AnnotationSorter;
+import jalview.analysis.AnnotationSorter.SortOrder;
 import jalview.analysis.Conservation;
 import jalview.commands.ChangeCaseCommand;
 import jalview.commands.EditCommand;
@@ -1902,9 +1903,9 @@ public class PopupMenu extends JPopupMenu
     }
     // TODO: save annotation sort order on AlignViewport
     // do sorting from AlignmentPanel.updateAnnotation()
-    new AnnotationSorter(this.ap.getAlignment())
-            .sortBySequenceAndType(this.ap.getAlignment()
-                    .getAlignmentAnnotation());
+    new AnnotationSorter(this.ap.getAlignment()).sort(this.ap
+            .getAlignment().getAlignmentAnnotation(),
+            SortOrder.SEQUENCE_AND_TYPE);
     refresh();
   }