{"url":"https://nishiohirokazu.hatenadiary.org/entry/20111201/1322713121","author_url":"https://blog.hatena.ne.jp/nishiohirokazu/","height":"190","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnishiohirokazu.hatenadiary.org%2Fentry%2F20111201%2F1322713121\" title=\"numpy\u306earray#sort\u306e\u6319\u52d5\u304c\u60f3\u5b9a\u5916\u3060\u3063\u305f\u4ef6 - \u897f\u5c3e\u6cf0\u548c\u306e\u306f\u3066\u306a\u30c0\u30a4\u30a2\u30ea\u30fc\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":[],"width":"100%","published":"2011-12-01 13:18:41","blog_title":"\u897f\u5c3e\u6cf0\u548c\u306e\u306f\u3066\u306a\u30c0\u30a4\u30a2\u30ea\u30fc","provider_url":"https://hatena.blog","author_name":"nishiohirokazu","blog_url":"https://nishiohirokazu.hatenadiary.org/","version":"1.0","title":"numpy\u306earray#sort\u306e\u6319\u52d5\u304c\u60f3\u5b9a\u5916\u3060\u3063\u305f\u4ef6","type":"rich","image_url":null,"description":"numpy\u306esort\u306f\u3001\u7279\u306b2\u6b21\u5143(\u4ee5\u4e0a)\u306e\u6642\u306b\u300c\u30ea\u30b9\u30c8\u306e\u30ea\u30b9\u30c8\u300d\u306e\u3088\u3046\u306a\u6c17\u6301\u3061\u3067sort\u3059\u308b\u3068\u300c\u30ea\u30b9\u30c8\u306e\u4e2d\u306e\u5404\u3005\u306e\u30ea\u30b9\u30c8\u304c\u30bd\u30fc\u30c8\u3055\u308c\u308b\u300d\u3068\u3044\u3046\u6319\u52d5\u3092\u3059\u308b\u306e\u3067\u30cf\u30de\u308b >>> x = [[6, 5], [4, 3], [2, 1]] >>> y = array(x) >>> x.sort() >>> x [[2, 1], [4, 3], [6, 5]] >>> y.sort() >>> y array([[5, 6], [3, 4], [1, 2]])numpy\u306esort\u306f\u5f15\u6570\u306b\u300c\u3069\u306e\u8ef8\u306b\u3064\u3044\u3066\u30bd\u30fc\u30c8\u3059\u308b\u304b\u300d\u3092\u6307\u5b9a\u3067\u304d\u308b\u304c\u3001\u305d\u308c\u3092\u7701\u7565\u3057\u305f\u5834\u5408\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u304c\u300c-1\u300d\u3064\u307e\u308a\u300c\u4e00\u756a\u5185\u5074\u306e\u30ea\u30b9\u30c8\u3092\u500b\u5225\u2026"}