Dear all, >From a dictionary, I want the keys sorted according to the values (string). I came with this method:
keysSortedByValue
^ (self associations sort: [ :assoc1 :assoc2 | assoc1 value < assoc2
value ])
collect: [ :assoc | assoc key ]
Is there better way to deal with it, in term of efficiency?
Thanks
Hilaire
--
Dr. Geo - http://drgeo.eu
iStoa - http://istoa.drgeo.eu
