JAL-1807 Bob's first commit -- Applet loaded; needs image
[jalview.git] / src / jalview / analysis / AAFrequency.java
index 6dd3a97..278caa7 100755 (executable)
@@ -344,7 +344,7 @@ public class AAFrequency
             // { (char) c };
             vl[c] = profile[0][c];
           }
-          QuickSort.sortFloat(vl, ca);
+          QuickSort.sortFloatChar(vl, ca);
           for (int p = 0, c = ca.length - 1; profile[0][ca[c]] > 0; c--)
           {
             final char residue = ca[c];
@@ -425,7 +425,7 @@ public class AAFrequency
       ca[c] = (char) c;
       vl[c] = profile[0][c];
     }
-    QuickSort.sortFloat(vl, ca);
+    QuickSort.sortFloatChar(vl, ca);
     int nextArrayPos = 2;
     int totalPercentage = 0;
     int distinctValuesCount = 0;
@@ -480,7 +480,7 @@ public class AAFrequency
     {
       codons[i] = (char) i;
     }
-    QuickSort.sortInt(sortedCounts, codons);
+    QuickSort.sortIntChar(sortedCounts, codons);
     int totalPercentage = 0;
     int distinctValuesCount = 0;
     int j = 3;
@@ -615,7 +615,7 @@ public class AAFrequency
       int[] sortedCodonCounts = new int[codonCounts.length - 2];
       System.arraycopy(codonCounts, 2, sortedCodonCounts, 0,
               codonCounts.length - 2);
-      QuickSort.sortInt(sortedCodonCounts, codons);
+      QuickSort.sortIntChar(sortedCodonCounts, codons);
 
       int modalCodonEncoded = codons[codons.length - 1];
       int modalCodonCount = sortedCodonCounts[codons.length - 1];