{"action":"opened","issue":{"url":"https://api.github.com/repos/atlascoder/tracker_hider/issues/6","labels_url":"https://api.github.com/repos/atlascoder/tracker_hider/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/atlascoder/tracker_hider/issues/6/comments","events_url":"https://api.github.com/repos/atlascoder/tracker_hider/issues/6/events","html_url":"https://github.com/atlascoder/tracker_hider/issues/6","id":117529833,"number":6,"title":"suggestions","user":{"login":"quanvn","id":7787884,"avatar_url":"https://avatars.githubusercontent.com/u/7787884?v=3","gravatar_id":"","url":"https://api.github.com/users/quanvn","html_url":"https://github.com/quanvn","followers_url":"https://api.github.com/users/quanvn/followers","following_url":"https://api.github.com/users/quanvn/following{/other_user}","gists_url":"https://api.github.com/users/quanvn/gists{/gist_id}","starred_url":"https://api.github.com/users/quanvn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quanvn/subscriptions","organizations_url":"https://api.github.com/users/quanvn/orgs","repos_url":"https://api.github.com/users/quanvn/repos","events_url":"https://api.github.com/users/quanvn/events{/privacy}","received_events_url":"https://api.github.com/users/quanvn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-18T07:21:30Z","updated_at":"2015-11-18T07:21:30Z","closed_at":null,"body":"For me, it is easier to find role and user(member) if they are sorted by name so here are my to suggestions. In file /views/_tracker_hider_settings.html.erb\r\n1. Line 5, replace original line \r\n   <% Role.all.each do |role| %> \r\nwith \r\n   <% Role.all.each do |role| %>\r\nwill sort role by name\r\n2. replace line 9-13 with the following\r\n\t\t\t<%- \r\n\t\t\t  memberlist = []\r\n\t\t\t  @project.members.each do |member| \r\n          if member.user.is_a?(User) then\r\n            memberlist << {:id=> member.user.id, :name => member.user.name}  \r\n          end \r\n\t\t\t  end\r\n\t\t\t  memberlist = memberlist.sort_by {|e| e[:name]} \tif memberlist.any?\t\t  \r\n\t\t\t-%>\r\n      <% memberlist.each do |member| %> \t\t\t\t\r\n\t\t\t\t\t<option value=\"user_<%=member[:id]%>\"><%= member[:name] %></option>\r\n\t\t\t<% end %>\r\nwill sort the user list by name\r\nSorry I do not how to use git to to put these changes into a pull request"}}