{"action":"opened","issue":{"url":"https://api.github.com/repos/exercism/xswift/issues/51","labels_url":"https://api.github.com/repos/exercism/xswift/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/exercism/xswift/issues/51/comments","events_url":"https://api.github.com/repos/exercism/xswift/issues/51/events","html_url":"https://github.com/exercism/xswift/issues/51","id":88803757,"number":51,"title":"Grade School should return a sorted tuple instead of a dictionary","user":{"login":"aarti","id":318049,"avatar_url":"https://avatars.githubusercontent.com/u/318049?v=3","gravatar_id":"","url":"https://api.github.com/users/aarti","html_url":"https://github.com/aarti","followers_url":"https://api.github.com/users/aarti/followers","following_url":"https://api.github.com/users/aarti/following{/other_user}","gists_url":"https://api.github.com/users/aarti/gists{/gist_id}","starred_url":"https://api.github.com/users/aarti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aarti/subscriptions","organizations_url":"https://api.github.com/users/aarti/orgs","repos_url":"https://api.github.com/users/aarti/repos","events_url":"https://api.github.com/users/aarti/events{/privacy}","received_events_url":"https://api.github.com/users/aarti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-16T18:30:15Z","updated_at":"2015-06-16T18:30:15Z","closed_at":null,"body":"For the test `func testSortSchool() ` we want to return an object that is sorted by keys and values of the dictionary. It seems like the test is working too hard and may not even be right, since the keys in a [Swift Dictionary](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Reference/Swift_Dictionary_Structure/index.html#//apple_ref/swift/struct/s:VSs10Dictionary) are not ordered.\r\nInstead of \r\n       ` let expected = [\r\n            3 : [\"Kyle\"],\r\n            4 : [ \"Christopher\", \"Jennifer\" ],\r\n            6 : [ \"Kareem\"]\r\n        ]`       \r\nWe should return\r\n`let expected = [ (3,[\"Kyle\"]), (4,[\"Christopher\", \"Jennifer\"] ),\r\n    (6, [\"Kareem\"])]`\r\n\r\nAlso `tuples` are the swift way to return groups of multiple values.\r\nI was at WWDC and showed my code to some devs at the swift lab. This was their suggestion."}}