{"action":"created","issue":{"url":"https://api.github.com/repos/okamstudio/godot/issues/1707","labels_url":"https://api.github.com/repos/okamstudio/godot/issues/1707/labels{/name}","comments_url":"https://api.github.com/repos/okamstudio/godot/issues/1707/comments","events_url":"https://api.github.com/repos/okamstudio/godot/issues/1707/events","html_url":"https://github.com/okamstudio/godot/issues/1707","id":69333608,"number":1707,"title":"Dictionary mixed.","user":{"login":"OlexiyKravchuk","id":10380658,"avatar_url":"https://avatars.githubusercontent.com/u/10380658?v=3","gravatar_id":"","url":"https://api.github.com/users/OlexiyKravchuk","html_url":"https://github.com/OlexiyKravchuk","followers_url":"https://api.github.com/users/OlexiyKravchuk/followers","following_url":"https://api.github.com/users/OlexiyKravchuk/following{/other_user}","gists_url":"https://api.github.com/users/OlexiyKravchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/OlexiyKravchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlexiyKravchuk/subscriptions","organizations_url":"https://api.github.com/users/OlexiyKravchuk/orgs","repos_url":"https://api.github.com/users/OlexiyKravchuk/repos","events_url":"https://api.github.com/users/OlexiyKravchuk/events{/privacy}","received_events_url":"https://api.github.com/users/OlexiyKravchuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-18T18:16:47Z","updated_at":"2015-04-18T18:27:48Z","closed_at":null,"body":"I tried to create a dictionary for this I took turns in the loop \"FOR\" adds one element of the file for the cycle, and in the file, it was in this order - (0,1,2,3,4,5,6, 7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29).\r\nBut when I started to get them one by one, each element of the dictionary, then the entire order is messed up in a strange way, this - (0,1,10,11,12,13,14,15,16,17,18,19,2, 20,21,22,23,24,25,26,27,28,29,3,4,5,6,7,8,9)\r\n  I also applied to the dictionary method keys (), which returns an array of keys, and this back even more confused the order is - (24,16,8,0,25,17,9,1,26,18,10,2, 27,19,11,3,28,20,12,4,29,21,13,5,22,14,6,23,15,7). I applied to the array function sort (), and it streamlined the array of keys, but did not solve my problem because I need is a dictionary with the correct order pairs.\r\nI spent a test for 1.0 stable, and 1.1 beta, the results are identical"},"comment":{"url":"https://api.github.com/repos/okamstudio/godot/issues/comments/94189665","html_url":"https://github.com/okamstudio/godot/issues/1707#issuecomment-94189665","issue_url":"https://api.github.com/repos/okamstudio/godot/issues/1707","id":94189665,"user":{"login":"not-surt","id":1218087,"avatar_url":"https://avatars.githubusercontent.com/u/1218087?v=3","gravatar_id":"","url":"https://api.github.com/users/not-surt","html_url":"https://github.com/not-surt","followers_url":"https://api.github.com/users/not-surt/followers","following_url":"https://api.github.com/users/not-surt/following{/other_user}","gists_url":"https://api.github.com/users/not-surt/gists{/gist_id}","starred_url":"https://api.github.com/users/not-surt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/not-surt/subscriptions","organizations_url":"https://api.github.com/users/not-surt/orgs","repos_url":"https://api.github.com/users/not-surt/repos","events_url":"https://api.github.com/users/not-surt/events{/privacy}","received_events_url":"https://api.github.com/users/not-surt/received_events","type":"User","site_admin":false},"created_at":"2015-04-18T18:27:48Z","updated_at":"2015-04-18T18:27:48Z","body":"A dictionary is not a sequence data structure.\nI have never seen an implementation on any platform that provided sequenced\nretrieval.\nIf you want that functionality then use a sequence and dictionary in\ncombination.\n\nOn 19 April 2015 at 04:16, OlexiyKravchuk <notifications@github.com> wrote:\n\n> I tried to create a dictionary for this I took turns in the loop \"FOR\"\n> adds one element of the file for the cycle, and in the file, it was in this\n> order - (0,1,2,3,4,5,6,\n> 7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29).\n> But when I started to get them one by one, each element of the dictionary,\n> then the entire order is messed up in a strange way, this -\n> (0,1,10,11,12,13,14,15,16,17,18,19,2,\n> 20,21,22,23,24,25,26,27,28,29,3,4,5,6,7,8,9)\n>   I also applied to the dictionary method keys (), which returns an array\n> of keys, and this back even more confused the order is -\n> (24,16,8,0,25,17,9,1,26,18,10,2,\n> 27,19,11,3,28,20,12,4,29,21,13,5,22,14,6,23,15,7). I applied to the array\n> function sort (), and it streamlined the array of keys, but did not solve\n> my problem because I need is a dictionary with the correct order pairs.\n> I spent a test for 1.0 stable, and 1.1 beta, the results are identical\n>\n> --\n> Reply to this email directly or view it on GitHub\n> <https://github.com/okamstudio/godot/issues/1707>.\n>\n"}}