Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!nntp.sei.cmu.edu!cis.ohio-state.edu!math.ohio-state.edu!cs.utexas.edu!news.sprintlink.net!simtel!harbinger.cc.monash.edu.au!news.cs.su.oz.au!inferno.mpx.com.au!metro!alsvid.scu.edu.au!mbaker10
From: mbaker10@scu.edu.au (Fox Mulder)
Subject: Dictionary keys !!
Message-ID: <D98Guw.1vC@scu.edu.au>
Organization: Southern Cross University
X-Newsreader: TIN [version 1.2 PL2]
Date: Sat, 27 May 1995 10:52:08 GMT
Lines: 29

HI folks  :)  I am having trouble returning the keys in a Dictionary
as a sorted collection.  Each key is an array of two elements.

The basic structure looks like this...   

AwardDict/ #('name','ID')/ aDictionary  etc etc    (nested dictionaries)

I return the keys to the application window from a model class (which holds
the dictionary structure).  The method in the model class is...

awardList
    "Return keys of AwardDict dictionary"
  ^(AwardDict keys asSortedCollection)

However, since the keys are arrays, I get an error with the <= method.  I
changed this to asOrderedCollection... and this works!!  However, I would
like the keys sorted on the ListPane.

Any ideas??

email me at:  mbaker10@scu.edu.au  OR   mbaker@casmac.scu.edu.au

Thanks in advance!!!  :)

-- 
               ,,,
              (o o)
   -=-=-=-oOO--(_)--OOo-=-=-=-=-
  |         MATT BAKER          | 
