{"action":"closed","issue":{"url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/465","repository_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper","labels_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/465/labels{/name}","comments_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/465/comments","events_url":"https://api.github.com/repos/Hearst-DD/ObjectMapper/issues/465/events","html_url":"https://github.com/Hearst-DD/ObjectMapper/issues/465","id":155007421,"number":465,"title":"sort array in mapping function","user":{"login":"anddygon","id":7263780,"avatar_url":"https://avatars.githubusercontent.com/u/7263780?v=3","gravatar_id":"","url":"https://api.github.com/users/anddygon","html_url":"https://github.com/anddygon","followers_url":"https://api.github.com/users/anddygon/followers","following_url":"https://api.github.com/users/anddygon/following{/other_user}","gists_url":"https://api.github.com/users/anddygon/gists{/gist_id}","starred_url":"https://api.github.com/users/anddygon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anddygon/subscriptions","organizations_url":"https://api.github.com/users/anddygon/orgs","repos_url":"https://api.github.com/users/anddygon/repos","events_url":"https://api.github.com/users/anddygon/events{/privacy}","received_events_url":"https://api.github.com/users/anddygon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-16T11:02:35Z","updated_at":"2016-06-22T02:21:14Z","closed_at":"2016-06-22T02:21:14Z","body":"struct SWProduct: Mappable {\r\n    \r\n    var images = [Image]()\r\n    \r\n    init?(_ map: Map) {\r\n        \r\n    }\r\n    \r\n    mutating func mapping(map: Map) {\r\n        images <- (map[\"images\"], SortTransform())\r\n    }\r\n    \r\n}\r\n\r\nextension SWProduct {\r\n    \r\n    struct Image {\r\n        var id = -1\r\n        var url = \"\"\r\n    }\r\n    \r\n}\r\n\r\nHow can i sort images by id when mapping? Thank advance"}}
{"actor":{"display_login":"tristanhimmelman"}}