{"action":"opened","issue":{"url":"https://api.github.com/repos/SwiftyJSON/SwiftyJSON/issues/227","labels_url":"https://api.github.com/repos/SwiftyJSON/SwiftyJSON/issues/227/labels{/name}","comments_url":"https://api.github.com/repos/SwiftyJSON/SwiftyJSON/issues/227/comments","events_url":"https://api.github.com/repos/SwiftyJSON/SwiftyJSON/issues/227/events","html_url":"https://github.com/SwiftyJSON/SwiftyJSON/issues/227","id":73857902,"number":227,"title":"Mixing order","user":{"login":"emrahu","id":2554974,"avatar_url":"https://avatars.githubusercontent.com/u/2554974?v=3","gravatar_id":"","url":"https://api.github.com/users/emrahu","html_url":"https://github.com/emrahu","followers_url":"https://api.github.com/users/emrahu/followers","following_url":"https://api.github.com/users/emrahu/following{/other_user}","gists_url":"https://api.github.com/users/emrahu/gists{/gist_id}","starred_url":"https://api.github.com/users/emrahu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emrahu/subscriptions","organizations_url":"https://api.github.com/users/emrahu/orgs","repos_url":"https://api.github.com/users/emrahu/repos","events_url":"https://api.github.com/users/emrahu/events{/privacy}","received_events_url":"https://api.github.com/users/emrahu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-07T06:02:55Z","updated_at":"2015-05-07T06:02:55Z","closed_at":null,"body":"SwiftyJSON mixes the order of dictionary items. Below is a JSON data example before and after SwiftyJSON\r\n\r\nThis is the value I get from my API, and print it in the console. Dates are ordered\r\ntotals: {\r\n    2015-04-01: {\r\n          total: \"64.54\",\r\n    },\r\n    2015-04-02: {\r\n          total: \"58.25\",\r\n    },\r\n    2015-04-03: {\r\n          total: \"72.94\",\r\n    }\r\n}\r\n\r\nAfter I use JSON(data!) and print it, I see the dates are mixed up. Why is this happening, and how do I fix this?\r\ntotals: {\r\n    2015-04-03: {\r\n          total: \"72.94\",\r\n    }\r\n    2015-04-01: {\r\n          total: \"64.54\",\r\n    },\r\n    2015-04-02: {\r\n          total: \"58.25\",\r\n    },\r\n}\r\n\r\n"}}