JAL-2490 find features for export as GFF, JAL-2548 respect group
[jalview.git] / src / jalview / analysis / AlignmentSorter.java
index f228350..e7733e9 100755 (executable)
@@ -783,8 +783,13 @@ public class AlignmentSorter
           continue;
         }
 
+        /*
+         * accept all features with null or empty group, otherwise
+         * check group is one of the currently visible groups
+         */
         String featureGroup = sf.getFeatureGroup();
         if (groups != null && featureGroup != null
+                && !"".equals(featureGroup)
                 && !groups.contains(featureGroup))
         {
           it.remove();