From 17142caeaf7d7ce17da0a77b1e36b125b4f447a9 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 18 Jun 2013 21:57:45 +0100 Subject: [PATCH] JAL-1320 ascending alphabetical order --- src/jalview/ws/jws2/JabaParamStore.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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); } -- 1.7.10.2