Dictionary keys order ?

Jun 12, 2012 at 2:18pm

Dictionary keys order ?


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.

Jun 12, 2012 at 3:27pm


Ok, dictionary_funall do (2).

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.



You must be logged in to reply to this topic.