/molgenis/src/org/molgenis/framework/server/services/MolgenisXrefService.java:
2 methods of sorting the values that are returned from json results . A weird thing happens :
when the initial value of the Affiliation is UMCG :
WITH 1st sorting : type in the box: UM: return values are returned (in this order) : UMCG, UMC St Radboud, LUMC, Maastricht UMC -->UMCU <-- (this is not sorted!!!!!!!!)
WITH 2nd sorting : type in the box: UM: return values are returned (in this order) : the same as above
WITOUT SORTING : THE same !.
I am guessing this problem arises :
[ '"could not sort a map based on values rather than keys:" http://www.theserverside.com/discussions/thread.tss?thread_id=29569Unfortunately, what you are left with is not a map anymore but a list pretending to be a map!So maybe'
SortedBidiMap? : http://commons.apache.org/collections/apidocs-COLLECTIONS_3_1/org/apache/commons/collections/bidimap/TreeBidiMap.html