JAL-2490 tidy code and tests for feature export in Jalview format
[jalview.git] / src / jalview / datamodel / features / SequenceFeatures.java
index 34470cc..ff570b1 100644 (file)
@@ -220,9 +220,11 @@ public class SequenceFeatures implements SequenceFeaturesI
     /*
      * else make a copy of the list, and remove any null value just in case,
      * as it would cause errors looking up the features Map
+     * sort in alphabetical order for consistent output behaviour
      */
     List<String> types = new ArrayList<String>(Arrays.asList(type));
     types.remove(null);
+    Collections.sort(types);
     return types;
   }