{"action":"created","issue":{"url":"https://api.github.com/repos/tinganho/node-accept-language/issues/22","repository_url":"https://api.github.com/repos/tinganho/node-accept-language","labels_url":"https://api.github.com/repos/tinganho/node-accept-language/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/tinganho/node-accept-language/issues/22/comments","events_url":"https://api.github.com/repos/tinganho/node-accept-language/issues/22/events","html_url":"https://github.com/tinganho/node-accept-language/pull/22","id":227333810,"number":22,"title":"Using a stable sort to keep order when equals","user":{"login":"micky2be","id":728644,"avatar_url":"https://avatars2.githubusercontent.com/u/728644?v=3","gravatar_id":"","url":"https://api.github.com/users/micky2be","html_url":"https://github.com/micky2be","followers_url":"https://api.github.com/users/micky2be/followers","following_url":"https://api.github.com/users/micky2be/following{/other_user}","gists_url":"https://api.github.com/users/micky2be/gists{/gist_id}","starred_url":"https://api.github.com/users/micky2be/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micky2be/subscriptions","organizations_url":"https://api.github.com/users/micky2be/orgs","repos_url":"https://api.github.com/users/micky2be/repos","events_url":"https://api.github.com/users/micky2be/events{/privacy}","received_events_url":"https://api.github.com/users/micky2be/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-09T11:25:42Z","updated_at":"2017-05-09T13:17:21Z","closed_at":"2017-05-09T13:13:32Z","pull_request":{"url":"https://api.github.com/repos/tinganho/node-accept-language/pulls/22","html_url":"https://github.com/tinganho/node-accept-language/pull/22","diff_url":"https://github.com/tinganho/node-accept-language/pull/22.diff","patch_url":"https://github.com/tinganho/node-accept-language/pull/22.patch"},"body":"The sort method in not stable and doesn't always keep the original order of the list pass to it.\r\nTo fix that and to keep an order of priority (with equals values of `q`) I introduced `stable` as a dependency.\r\n\r\nExtreme use case:\r\n```js\r\nvar acceptLanguage = require(\"accept-language\")\r\nacceptLanguage.languages(['en', 'ja', 'ko', 'zh-CN', 'zh-TW', 'de', 'es', 'fr', 'it']);\r\nvar lang = acceptLanguage.get('en, ja, ne, zh, zh-TW, zh-CN, af, sq, am, ar, an');\r\n// lang === 'zh-CN'\r\n```"},"comment":{"url":"https://api.github.com/repos/tinganho/node-accept-language/issues/comments/300159786","html_url":"https://github.com/tinganho/node-accept-language/pull/22#issuecomment-300159786","issue_url":"https://api.github.com/repos/tinganho/node-accept-language/issues/22","id":300159786,"user":{"login":"tinganho","id":1324476,"avatar_url":"https://avatars0.githubusercontent.com/u/1324476?v=3","gravatar_id":"","url":"https://api.github.com/users/tinganho","html_url":"https://github.com/tinganho","followers_url":"https://api.github.com/users/tinganho/followers","following_url":"https://api.github.com/users/tinganho/following{/other_user}","gists_url":"https://api.github.com/users/tinganho/gists{/gist_id}","starred_url":"https://api.github.com/users/tinganho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinganho/subscriptions","organizations_url":"https://api.github.com/users/tinganho/orgs","repos_url":"https://api.github.com/users/tinganho/repos","events_url":"https://api.github.com/users/tinganho/events{/privacy}","received_events_url":"https://api.github.com/users/tinganho/received_events","type":"User","site_admin":false},"created_at":"2017-05-09T13:17:21Z","updated_at":"2017-05-09T13:17:21Z","body":"@micky2be Thanks.\r\n\r\n"}}
{"actor":{"display_login":"tinganho"}}