JAL-1320 ascending alphabetical order
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Tue, 18 Jun 2013 20:57:45 +0000 (21:57 +0100)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Tue, 18 Jun 2013 20:57:45 +0000 (21:57 +0100)
src/jalview/ws/jws2/JabaParamStore.java

index ec504dd..285777a 100644 (file)
@@ -180,6 +180,14 @@ public class JabaParamStore implements ParamDatastoreI
     ArgumentI[] rgssort = rgs.toArray(new ArgumentI[rgs.size()]);
     String[] rgssorton = rgnames.toArray(new String[rgs.size()]);
     jalview.util.QuickSort.sort(rgssorton, rgssort);
+    ArgumentI tmp1;
+    int i=0;
+    while (rgssort.length-i>i)
+    {
+      tmp1=rgssort[rgssort.length-i-1];
+      rgssort[rgssort.length-i-1] = rgssort[i];
+      rgssort[i++]=tmp1;
+    }
     return Arrays.asList(rgssort);
   }