wiki:DespoinaLog/2012/06/12

/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

Last modified 12 years ago Last modified on 2012-06-12T13:36:10+02:00