From: Jim Procter Date: Tue, 18 Jun 2013 20:57:45 +0000 (+0100) Subject: JAL-1320 ascending alphabetical order X-Git-Tag: Jalview_2_9~236^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=17142caeaf7d7ce17da0a77b1e36b125b4f447a9;p=jalview.git JAL-1320 ascending alphabetical order --- diff --git a/src/jalview/ws/jws2/JabaParamStore.java b/src/jalview/ws/jws2/JabaParamStore.java index ec504dd..285777a 100644 --- a/src/jalview/ws/jws2/JabaParamStore.java +++ b/src/jalview/ws/jws2/JabaParamStore.java @@ -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); }