{"action":"created","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/13008","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/13008/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/13008/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/13008/events","html_url":"https://github.com/cocos2d/cocos2d-x/issues/13008","id":97187065,"number":13008,"title":"RenderQueue:sort 在android机器上有可能出现错乱问题，std::sort is not always stable on every platform","user":{"login":"c3076802","id":3726167,"avatar_url":"https://avatars.githubusercontent.com/u/3726167?v=3","gravatar_id":"","url":"https://api.github.com/users/c3076802","html_url":"https://github.com/c3076802","followers_url":"https://api.github.com/users/c3076802/followers","following_url":"https://api.github.com/users/c3076802/following{/other_user}","gists_url":"https://api.github.com/users/c3076802/gists{/gist_id}","starred_url":"https://api.github.com/users/c3076802/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c3076802/subscriptions","organizations_url":"https://api.github.com/users/c3076802/orgs","repos_url":"https://api.github.com/users/c3076802/repos","events_url":"https://api.github.com/users/c3076802/events{/privacy}","received_events_url":"https://api.github.com/users/c3076802/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/labels/module:renderer","name":"module:renderer","color":"207de5"},{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/labels/type:bug","name":"type:bug","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"fusijie","id":5085300,"avatar_url":"https://avatars.githubusercontent.com/u/5085300?v=3","gravatar_id":"","url":"https://api.github.com/users/fusijie","html_url":"https://github.com/fusijie","followers_url":"https://api.github.com/users/fusijie/followers","following_url":"https://api.github.com/users/fusijie/following{/other_user}","gists_url":"https://api.github.com/users/fusijie/gists{/gist_id}","starred_url":"https://api.github.com/users/fusijie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusijie/subscriptions","organizations_url":"https://api.github.com/users/fusijie/orgs","repos_url":"https://api.github.com/users/fusijie/repos","events_url":"https://api.github.com/users/fusijie/events{/privacy}","received_events_url":"https://api.github.com/users/fusijie/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/milestones/22","html_url":"https://github.com/cocos2d/cocos2d-x/milestones/unconfirmed","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/milestones/22/labels","id":1080226,"number":22,"title":"unconfirmed","description":"","creator":{"login":"walzer","id":345379,"avatar_url":"https://avatars.githubusercontent.com/u/345379?v=3","gravatar_id":"","url":"https://api.github.com/users/walzer","html_url":"https://github.com/walzer","followers_url":"https://api.github.com/users/walzer/followers","following_url":"https://api.github.com/users/walzer/following{/other_user}","gists_url":"https://api.github.com/users/walzer/gists{/gist_id}","starred_url":"https://api.github.com/users/walzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walzer/subscriptions","organizations_url":"https://api.github.com/users/walzer/orgs","repos_url":"https://api.github.com/users/walzer/repos","events_url":"https://api.github.com/users/walzer/events{/privacy}","received_events_url":"https://api.github.com/users/walzer/received_events","type":"User","site_admin":false},"open_issues":264,"closed_issues":25,"state":"open","created_at":"2015-04-23T08:44:11Z","updated_at":"2015-08-02T13:48:13Z","due_on":"2015-11-29T16:00:00Z","closed_at":null},"comments":1,"created_at":"2015-07-25T03:55:07Z","updated_at":"2015-08-04T02:40:05Z","closed_at":null,"body":"这个是我同事提交给我的bug，经实测是有问题的，需要具体测试环境和bug描述，请联系我。\r\n\r\n\tvoid RenderQueue::sort()\r\n\t{\r\n\t\t//std::sort就在windows下边是稳定排序，g++是不稳定排序\r\n\t\t//如果序列里面有某个子序列系自己排好序再插入去的话，然后这个序列经过std::sort就会将你个子序列反转\r\n\t\t// Don't sort _queue0, it already comes sorted\r\n\t\tstd::stable_sort(std::begin(_commands[QUEUE_GROUP::TRANSPARENT_3D]), std::end(_commands[QUEUE_GROUP::TRANSPARENT_3D]), compare3DCommand);\r\n\t\tstd::stable_sort(std::begin(_commands[QUEUE_GROUP::GLOBALZ_NEG]), std::end(_commands[QUEUE_GROUP::GLOBALZ_NEG]), compareRenderCommand);\r\n\t}"},"comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/comments/127458747","html_url":"https://github.com/cocos2d/cocos2d-x/issues/13008#issuecomment-127458747","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/13008","id":127458747,"user":{"login":"fusijie","id":5085300,"avatar_url":"https://avatars.githubusercontent.com/u/5085300?v=3","gravatar_id":"","url":"https://api.github.com/users/fusijie","html_url":"https://github.com/fusijie","followers_url":"https://api.github.com/users/fusijie/followers","following_url":"https://api.github.com/users/fusijie/following{/other_user}","gists_url":"https://api.github.com/users/fusijie/gists{/gist_id}","starred_url":"https://api.github.com/users/fusijie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusijie/subscriptions","organizations_url":"https://api.github.com/users/fusijie/orgs","repos_url":"https://api.github.com/users/fusijie/repos","events_url":"https://api.github.com/users/fusijie/events{/privacy}","received_events_url":"https://api.github.com/users/fusijie/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T02:40:05Z","updated_at":"2015-08-04T02:40:05Z","body":"请提供一个测试例（代码片段），以及测试的环境需求（平台？设备？）感谢~\r\n\r\nCould you please provide some pieces of code and the environment requirement? Thanks."}}