{"action":"opened","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/5816","labels_url":"https://api.github.com/repos/numpy/numpy/issues/5816/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/5816/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/5816/events","html_url":"https://github.com/numpy/numpy/issues/5816","id":71979489,"number":5816,"title":"argsort bug","user":{"login":"hantek","id":5122190,"avatar_url":"https://avatars.githubusercontent.com/u/5122190?v=3","gravatar_id":"","url":"https://api.github.com/users/hantek","html_url":"https://github.com/hantek","followers_url":"https://api.github.com/users/hantek/followers","following_url":"https://api.github.com/users/hantek/following{/other_user}","gists_url":"https://api.github.com/users/hantek/gists{/gist_id}","starred_url":"https://api.github.com/users/hantek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hantek/subscriptions","organizations_url":"https://api.github.com/users/hantek/orgs","repos_url":"https://api.github.com/users/hantek/repos","events_url":"https://api.github.com/users/hantek/events{/privacy}","received_events_url":"https://api.github.com/users/hantek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-29T20:21:26Z","updated_at":"2015-04-29T20:21:26Z","closed_at":null,"body":"I come across a wrong numpy output while using argsort():\r\n\r\n>>> x\r\narray([  2.43752439e-01,   2.12345154e-01,   3.00682512e-01,\r\n         8.82461778e-01,   6.54040476e-01,   9.66741454e-04,\r\n         1.41006860e-01,   3.42346428e-02,   2.20661171e-01,\r\n         1.04476288e+00,   1.82253038e-01,   5.79845517e-01,\r\n         5.15250240e-01,   1.31020432e+00,   1.77514292e+00])\r\n>>> x.argsort()\r\narray([ 5,  7,  6, 10,  1,  8,  0,  2, 12, 11,  4,  3,  9, 13, 14])\r\n\r\n\r\nApparently the number 1.04476288e+00 in x[9] should be the third largest, but it yields that the number 2.20661171e-01 in x[8] is the third largest. \r\n\r\nIt doesn't seem like an error caused by this simple code itself, so I consider it as a bug in argsort()\r\n\r\nI am using numpy 1.6.1, python 2.7.2. "}}