{"action":"created","issue":{"url":"https://api.github.com/repos/RestKit/RestKit/issues/1411","labels_url":"https://api.github.com/repos/RestKit/RestKit/issues/1411/labels{/name}","comments_url":"https://api.github.com/repos/RestKit/RestKit/issues/1411/comments","events_url":"https://api.github.com/repos/RestKit/RestKit/issues/1411/events","html_url":"https://github.com/RestKit/RestKit/issues/1411","id":14673015,"number":1411,"title":"Preserve order from JSON request in to-many relationships?","user":{"login":"lasseyls","id":2298345,"avatar_url":"https://avatars.githubusercontent.com/u/2298345?v=3","gravatar_id":"","url":"https://api.github.com/users/lasseyls","html_url":"https://github.com/lasseyls","followers_url":"https://api.github.com/users/lasseyls/followers","following_url":"https://api.github.com/users/lasseyls/following{/other_user}","gists_url":"https://api.github.com/users/lasseyls/gists{/gist_id}","starred_url":"https://api.github.com/users/lasseyls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasseyls/subscriptions","organizations_url":"https://api.github.com/users/lasseyls/orgs","repos_url":"https://api.github.com/users/lasseyls/repos","events_url":"https://api.github.com/users/lasseyls/events{/privacy}","received_events_url":"https://api.github.com/users/lasseyls/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"blakewatters","id":8392,"avatar_url":"https://avatars.githubusercontent.com/u/8392?v=3","gravatar_id":"","url":"https://api.github.com/users/blakewatters","html_url":"https://github.com/blakewatters","followers_url":"https://api.github.com/users/blakewatters/followers","following_url":"https://api.github.com/users/blakewatters/following{/other_user}","gists_url":"https://api.github.com/users/blakewatters/gists{/gist_id}","starred_url":"https://api.github.com/users/blakewatters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakewatters/subscriptions","organizations_url":"https://api.github.com/users/blakewatters/orgs","repos_url":"https://api.github.com/users/blakewatters/repos","events_url":"https://api.github.com/users/blakewatters/events{/privacy}","received_events_url":"https://api.github.com/users/blakewatters/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/RestKit/RestKit/milestones/31","html_url":"https://github.com/RestKit/RestKit/milestones/Object%20Mapping","labels_url":"https://api.github.com/repos/RestKit/RestKit/milestones/31/labels","id":430627,"number":31,"title":"Object Mapping","description":"Milestone rounding up bug fixes and enhancements to the mapping layer.","creator":{"login":"blakewatters","id":8392,"avatar_url":"https://avatars.githubusercontent.com/u/8392?v=3","gravatar_id":"","url":"https://api.github.com/users/blakewatters","html_url":"https://github.com/blakewatters","followers_url":"https://api.github.com/users/blakewatters/followers","following_url":"https://api.github.com/users/blakewatters/following{/other_user}","gists_url":"https://api.github.com/users/blakewatters/gists{/gist_id}","starred_url":"https://api.github.com/users/blakewatters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakewatters/subscriptions","organizations_url":"https://api.github.com/users/blakewatters/orgs","repos_url":"https://api.github.com/users/blakewatters/repos","events_url":"https://api.github.com/users/blakewatters/events{/privacy}","received_events_url":"https://api.github.com/users/blakewatters/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":5,"state":"open","created_at":"2013-09-18T11:38:59Z","updated_at":"2015-03-20T18:21:34Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2013-05-23T13:09:23Z","updated_at":"2015-04-25T13:39:08Z","closed_at":null,"body":"Is there a way to preserve the order in which id's where returned in a to-many relation ship?\r\n\r\nFx I have this JSON:\r\n```json\r\n\"tours\": {\r\n     \"tourID: 1,\r\n     \"mediaIDs\" : {\r\n           2, 3, 4, 9, 7, 10\r\n      }\r\n}\r\n```\r\n\r\nWhich reference other medias that might look like this:\r\n```json\r\n\"medias\": {\r\n     \"id\": 7,\r\n     \"title\": \"test media\"\r\n}\r\n```\r\n\r\n\r\nThe mediaIDs are referenced in the correct order, and I would like to preserve this order in my CoreData to-many relationship. NSOrderedSet returns the same order always, but the mapping doesn't seem to respect the order of the IDs in the JSON payload?"},"comment":{"url":"https://api.github.com/repos/RestKit/RestKit/issues/comments/96204474","html_url":"https://github.com/RestKit/RestKit/issues/1411#issuecomment-96204474","issue_url":"https://api.github.com/repos/RestKit/RestKit/issues/1411","id":96204474,"user":{"login":"maxoly","id":404439,"avatar_url":"https://avatars.githubusercontent.com/u/404439?v=3","gravatar_id":"","url":"https://api.github.com/users/maxoly","html_url":"https://github.com/maxoly","followers_url":"https://api.github.com/users/maxoly/followers","following_url":"https://api.github.com/users/maxoly/following{/other_user}","gists_url":"https://api.github.com/users/maxoly/gists{/gist_id}","starred_url":"https://api.github.com/users/maxoly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxoly/subscriptions","organizations_url":"https://api.github.com/users/maxoly/orgs","repos_url":"https://api.github.com/users/maxoly/repos","events_url":"https://api.github.com/users/maxoly/events{/privacy}","received_events_url":"https://api.github.com/users/maxoly/received_events","type":"User","site_admin":false},"created_at":"2015-04-25T13:39:08Z","updated_at":"2015-04-25T13:39:08Z","body":"+1"}}