{"action":"created","issue":{"url":"https://api.github.com/repos/datamade/django-councilmatic/issues/62","repository_url":"https://api.github.com/repos/datamade/django-councilmatic","labels_url":"https://api.github.com/repos/datamade/django-councilmatic/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/datamade/django-councilmatic/issues/62/comments","events_url":"https://api.github.com/repos/datamade/django-councilmatic/issues/62/events","html_url":"https://github.com/datamade/django-councilmatic/issues/62","id":146441973,"number":62,"title":"Fix javascript sort order to honor template priority of chair roles","user":{"login":"patcon","id":305339,"avatar_url":"https://avatars.githubusercontent.com/u/305339?v=3","gravatar_id":"","url":"https://api.github.com/users/patcon","html_url":"https://github.com/patcon","followers_url":"https://api.github.com/users/patcon/followers","following_url":"https://api.github.com/users/patcon/following{/other_user}","gists_url":"https://api.github.com/users/patcon/gists{/gist_id}","starred_url":"https://api.github.com/users/patcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patcon/subscriptions","organizations_url":"https://api.github.com/users/patcon/orgs","repos_url":"https://api.github.com/users/patcon/repos","events_url":"https://api.github.com/users/patcon/events{/privacy}","received_events_url":"https://api.github.com/users/patcon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-06T21:33:00Z","updated_at":"2016-04-06T22:29:45Z","closed_at":null,"body":"Ref: https://github.com/datamade/django-councilmatic/issues/61#issuecomment-206565804\r\n\r\nOk, bad news :( The approach mentioned in the above link doesn't seem to work as expected, so I think this is a bug.\r\n\r\nThe template doesn't actually sort with chairs at the top, it just so happens that lexicographic sort puts \"Chairperson\" above \"Member\". When I tweak the members filter to find chair roles that *contain* \"Chair\" (ie. both \"Vice Chair\" and \"Chair\"), and also for the view to display the underlying label (ie. not \"Chairperson\"), then \"Vice Chair\" goes to the bottom in a fresh browser reload:\r\n\r\n![](https://imgur.com/XT8zTdt.png)"},"comment":{"url":"https://api.github.com/repos/datamade/django-councilmatic/issues/comments/206596699","html_url":"https://github.com/datamade/django-councilmatic/issues/62#issuecomment-206596699","issue_url":"https://api.github.com/repos/datamade/django-councilmatic/issues/62","id":206596699,"user":{"login":"cathydeng","id":1406537,"avatar_url":"https://avatars.githubusercontent.com/u/1406537?v=3","gravatar_id":"","url":"https://api.github.com/users/cathydeng","html_url":"https://github.com/cathydeng","followers_url":"https://api.github.com/users/cathydeng/followers","following_url":"https://api.github.com/users/cathydeng/following{/other_user}","gists_url":"https://api.github.com/users/cathydeng/gists{/gist_id}","starred_url":"https://api.github.com/users/cathydeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cathydeng/subscriptions","organizations_url":"https://api.github.com/users/cathydeng/orgs","repos_url":"https://api.github.com/users/cathydeng/repos","events_url":"https://api.github.com/users/cathydeng/events{/privacy}","received_events_url":"https://api.github.com/users/cathydeng/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T22:29:45Z","updated_at":"2016-04-06T22:29:45Z","body":"ok, I'll take a look at this when I have time, but I consider template bugs to be very low-priority (relative to deeper issues w/ the data loading, data models), & for your own sanity, I wouldn't recommend waiting for template fixes in django-councilmatic instead of overriding\r\n\r\nthis might have something to do with the config for the js datatable (maybe it's automatically sorting? if so turn off sort?)"}}