Dictionary keys order ?

Jun 12, 2012 at 2:18pm

Dictionary keys order ?

Hello,

I do not get keys in the same order with dictionary_dump (look ordered) and dictionary_getkeys (not well ordered) …

(1) is “getkeys” traverse according to hashvalue while “dump” respect appended order ?
(2) is there a way to get keys well ordered ?

Thanks for tips.

#46646
Jun 12, 2012 at 3:27pm

Hello,

Ok, dictionary_funall do (2).

#167804
Jun 18, 2012 at 2:41pm

FYI, we have added a new dictionary_getkeys_ordered() function in the sdk for an upcoming version of Max.

Cheers,
Tim

#167805

You must be logged in to reply to this topic.