JAL-3253 preliminary static fixes for JavaScript part 2
[jalview.git] / src / jalview / analysis / AlignmentSorter.java
index e5038ba..427db84 100755 (executable)
@@ -55,6 +55,18 @@ import java.util.List;
 public class AlignmentSorter
 {
 
+  /**
+   * types of feature ordering: Sort by score : average score - or total score -
+   * over all features in region Sort by feature label text: (or if null -
+   * feature type text) - numerical or alphabetical Sort by feature density:
+   * based on counts - ignoring individual text or scores for each feature
+   */
+  public static final String FEATURE_SCORE = "average_score";
+
+  public static final String FEATURE_LABEL = "text";
+
+  public static final String FEATURE_DENSITY = "density";
+
   static AlignmentSorter instance;
 
   public static AlignmentSorter getInstance()
@@ -69,7 +81,7 @@ public class AlignmentSorter
     {
       g = Thread.currentThread().getThreadGroup();
       /**
-       * @j2sNative i = g._jalviewScoreModelsInstance;
+       * @j2sNative i = g._jalviewAlignmentSorterInstance;
        * 
        */
     }
@@ -80,7 +92,7 @@ public class AlignmentSorter
       if (Platform.isJS())
       {
         /**
-         * @j2sNative g._jalviewScoreModelsInstance = i;
+         * @j2sNative g._jalviewAlignmentSorterInstance = i;
          * 
          */
       }
@@ -722,18 +734,6 @@ public class AlignmentSorter
   }
 
   /**
-   * types of feature ordering: Sort by score : average score - or total score -
-   * over all features in region Sort by feature label text: (or if null -
-   * feature type text) - numerical or alphabetical Sort by feature density:
-   * based on counts - ignoring individual text or scores for each feature
-   */
-  public static String FEATURE_SCORE = "average_score";
-
-  public static String FEATURE_LABEL = "text";
-
-  public static String FEATURE_DENSITY = "density";
-
-  /**
    * Sort sequences by feature score or density, optionally restricted by
    * feature types, feature groups, or alignment start/end positions.
    * <p>