From: jprocter Date: Fri, 18 Jan 2013 15:55:58 +0000 (+0000) Subject: JAL-1238 order to place primary sources before lower tier sources X-Git-Tag: Jalview_2_9~253^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=89822d8d5731171df5228c5a4c78bd8ff7c8abc8;p=jalview.git JAL-1238 order to place primary sources before lower tier sources --- diff --git a/src/jalview/ws/seqfetcher/ASequenceFetcher.java b/src/jalview/ws/seqfetcher/ASequenceFetcher.java index 45b866e..e475915 100644 --- a/src/jalview/ws/seqfetcher/ASequenceFetcher.java +++ b/src/jalview/ws/seqfetcher/ASequenceFetcher.java @@ -272,9 +272,10 @@ public class ASequenceFetcher DbSourceProxy[] l = dblist.values().toArray(new DbSourceProxy[0]); int i = 0; String[] nm = new String[l.length]; + // make sure standard dbs appear first, followed by reference das sources, followed by anything else. for (DbSourceProxy s : l) { - nm[i++] = s.getDbName().toLowerCase(); + nm[i++] = ""+s.getTier()+s.getDbName().toLowerCase(); } jalview.util.QuickSort.sort(nm, l); dbs = new ArrayList();