From 89822d8d5731171df5228c5a4c78bd8ff7c8abc8 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 18 Jan 2013 15:55:58 +0000 Subject: [PATCH] JAL-1238 order to place primary sources before lower tier sources --- src/jalview/ws/seqfetcher/ASequenceFetcher.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 1.7.10.2