|
Re: A sort question
Yes. It seems a bit strange to me too how each dictionary has only one item.
But it may not be the way you suggested Ooble, because a dictionary can not be sorted. The order of items in a dictionary can't be changed since the positions are arbitrarily assigned as a result of hash values. If you wanted to sort a dictionary, you would have to change its data type (which is in fact accomplished with the code you posted).
|