{"action":"created","issue":{"url":"https://api.github.com/repos/zermelo-software/zermelo-app/issues/1","repository_url":"https://api.github.com/repos/zermelo-software/zermelo-app","labels_url":"https://api.github.com/repos/zermelo-software/zermelo-app/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/zermelo-software/zermelo-app/issues/1/comments","events_url":"https://api.github.com/repos/zermelo-software/zermelo-app/issues/1/events","html_url":"https://github.com/zermelo-software/zermelo-app/issues/1","id":111579001,"number":1,"title":"Teachers/subjects/locations/groups should be sorted","user":{"login":"gkrol-zermelo","id":2834493,"avatar_url":"https://avatars.githubusercontent.com/u/2834493?v=3","gravatar_id":"","url":"https://api.github.com/users/gkrol-zermelo","html_url":"https://github.com/gkrol-zermelo","followers_url":"https://api.github.com/users/gkrol-zermelo/followers","following_url":"https://api.github.com/users/gkrol-zermelo/following{/other_user}","gists_url":"https://api.github.com/users/gkrol-zermelo/gists{/gist_id}","starred_url":"https://api.github.com/users/gkrol-zermelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkrol-zermelo/subscriptions","organizations_url":"https://api.github.com/users/gkrol-zermelo/orgs","repos_url":"https://api.github.com/users/gkrol-zermelo/repos","events_url":"https://api.github.com/users/gkrol-zermelo/events{/privacy}","received_events_url":"https://api.github.com/users/gkrol-zermelo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zermelo-software/zermelo-app/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-15T09:32:10Z","updated_at":"2016-06-18T13:17:08Z","closed_at":null,"body":"When an appointment contains multiple teachers/subjects etc. those are shown in a random order (as received from the API). This gives inconsistent results and this is not the same as in the Zermelo Portal."},"comment":{"url":"https://api.github.com/repos/zermelo-software/zermelo-app/issues/comments/226941997","html_url":"https://github.com/zermelo-software/zermelo-app/issues/1#issuecomment-226941997","issue_url":"https://api.github.com/repos/zermelo-software/zermelo-app/issues/1","id":226941997,"user":{"login":"ko3st","id":6562110,"avatar_url":"https://avatars.githubusercontent.com/u/6562110?v=3","gravatar_id":"","url":"https://api.github.com/users/ko3st","html_url":"https://github.com/ko3st","followers_url":"https://api.github.com/users/ko3st/followers","following_url":"https://api.github.com/users/ko3st/following{/other_user}","gists_url":"https://api.github.com/users/ko3st/gists{/gist_id}","starred_url":"https://api.github.com/users/ko3st/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ko3st/subscriptions","organizations_url":"https://api.github.com/users/ko3st/orgs","repos_url":"https://api.github.com/users/ko3st/repos","events_url":"https://api.github.com/users/ko3st/events{/privacy}","received_events_url":"https://api.github.com/users/ko3st/received_events","type":"User","site_admin":false},"created_at":"2016-06-18T13:17:08Z","updated_at":"2016-06-18T13:17:08Z","body":"Please allow me to first point out the following:\r\n\r\nIn the Zermelo client you can have two teachers who both teach, AND are tutor of their own classes:\r\n- teacher Zzz teaches b1a;\r\n- teacher Aaa, teaches b1b.\r\n\r\nNow when you crate ONE activity with both teacher and both classes, then it looks like Aaa will be matched to b1a (where as it should be b1b) and Zzz teaches b1b (where as it should be b1a). \r\n\r\nOf course this is because of the automatic alphabetical sorting of teachernames and classnames, which rarely match by themselves within that ONE activity...\r\n\r\nPerhaps it is possible to create a functionality to force Zermelo to match tutors to their tutorgroup, by automatically splitting the ONE activity into two separate activities, and automatically trying to  match the class to the tutor, (if available), before defaulting to the alphabetical approach.\r\n\r\nPerhaps the same principle could be applied to this issue. Meaning, trying to match the random teacher/subjects ( as received from the API) somehow, with the order as shown in the portal. (If need be, one by one).\r\n\r\nPlease let me know what you think of my ideas."}}
{"actor":{"display_login":"ko3st"}}