Re: Best way to sort a dictionary by value?
Re: Best way to sort a dictionary by value?
- Subject: Re: Best way to sort a dictionary by value?
- From: Scott Anguish <email@hidden>
- Date: Tue, 24 Sep 2002 18:53:25 -0400
On Tuesday, September 24, 2002, at 10:04 AM, Matt Neuburg wrote:
On Sun, 22 Sep 2002 20:46:45 +0100, Keith Pritchard
<email@hidden> said:
I have a dictionary of dictionaries
I'd like to sort the dictionary1 keys by the values in dictionary
2....
eg. I'd like to get an array of dictionary1 keys that when iterated
through would result in a table of dictionary2 values sorted by, say,
date
Before I do something silly like trying to loop through dict2 using a
standard sort algorithm, does cocoa give me anything to make it
easier?
I keep looking at keysSortedByValueUsingSelector but not exactly sure
how it would work
<snip>
Consider alternatively sortedArrayUsingSelector: and
sortedArrayUsingFunction:. m.
Also, look at bdistributed.com's BDControl.. it supplies EO style
qualifiers and sort ordering..
http://www.bdistributed.com/projects/BDControl/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.