{
// Text descriptions surface in the Preferences Sort by... options
SEQUENCE_AND_LABEL("Sequence"), LABEL_AND_SEQUENCE("Label"),
- NONE("No sort");
+ NONE("No sort"),
+
+ /**
+ * custom is set if user drags to reorder annotations
+ */
+ CUSTOM("Customised");
private String description;
private boolean showAutocalcAbove;
// working map of sequence index in alignment
- private final Map<SequenceI, Integer> sequenceIndices = new HashMap<SequenceI, Integer>();
+ private final Map<SequenceI, Integer> sequenceIndices = new HashMap<>();
/**
* Constructor given an alignment and the location (top or bottom) of
public void sort(AlignmentAnnotation[] alignmentAnnotations,
SequenceAnnotationOrder order)
{
- if (alignmentAnnotations == null)
+ if (alignmentAnnotations == null
+ || order == SequenceAnnotationOrder.CUSTOM)
{
return;
}