{"action":"created","issue":{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/3522","repository_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2","labels_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/3522/labels{/name}","comments_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/3522/comments","events_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/3522/events","html_url":"https://github.com/OpenRCT2/OpenRCT2/pull/3522","id":153625283,"number":3522,"title":"Peep order","user":{"login":"Broxzier","id":9705046,"avatar_url":"https://avatars.githubusercontent.com/u/9705046?v=3","gravatar_id":"","url":"https://api.github.com/users/Broxzier","html_url":"https://github.com/Broxzier","followers_url":"https://api.github.com/users/Broxzier/followers","following_url":"https://api.github.com/users/Broxzier/following{/other_user}","gists_url":"https://api.github.com/users/Broxzier/gists{/gist_id}","starred_url":"https://api.github.com/users/Broxzier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Broxzier/subscriptions","organizations_url":"https://api.github.com/users/Broxzier/orgs","repos_url":"https://api.github.com/users/Broxzier/repos","events_url":"https://api.github.com/users/Broxzier/events{/privacy}","received_events_url":"https://api.github.com/users/Broxzier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-05-07T23:59:10Z","updated_at":"2016-05-15T16:58:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/3522","html_url":"https://github.com/OpenRCT2/OpenRCT2/pull/3522","diff_url":"https://github.com/OpenRCT2/OpenRCT2/pull/3522.diff","patch_url":"https://github.com/OpenRCT2/OpenRCT2/pull/3522.patch"},"body":"This PR will sort the guest/staff lists while taking numbers into account. Numbers in the middle of the string will be used for sorting too, an example screenshot:\r\n\r\n![Staff list](http://i.imgur.com/t4nqJIs.png)\r\n\r\nThe second commit will sort the peep list when a park is loaded. It's a bit hacky, because the function `peep_update_name_sort` assumes the list is in order already."},"comment":{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/comments/219297291","html_url":"https://github.com/OpenRCT2/OpenRCT2/pull/3522#issuecomment-219297291","issue_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/3522","id":219297291,"user":{"login":"IntelOrca","id":1482259,"avatar_url":"https://avatars.githubusercontent.com/u/1482259?v=3","gravatar_id":"","url":"https://api.github.com/users/IntelOrca","html_url":"https://github.com/IntelOrca","followers_url":"https://api.github.com/users/IntelOrca/followers","following_url":"https://api.github.com/users/IntelOrca/following{/other_user}","gists_url":"https://api.github.com/users/IntelOrca/gists{/gist_id}","starred_url":"https://api.github.com/users/IntelOrca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IntelOrca/subscriptions","organizations_url":"https://api.github.com/users/IntelOrca/orgs","repos_url":"https://api.github.com/users/IntelOrca/repos","events_url":"https://api.github.com/users/IntelOrca/events{/privacy}","received_events_url":"https://api.github.com/users/IntelOrca/received_events","type":"User","site_admin":false},"created_at":"2016-05-15T16:58:47Z","updated_at":"2016-05-15T16:58:47Z","body":"Use `sprite_index` instead of `peep->sprite_index`. I think the main problem you have is that you forgot to increment i in the second peep loop."}}