{"width":"100%","blog_title":"\u304b\u305a\u304d\u306eBlog@hatena","title":"\u30cf\u30c3\u30b7\u30e5\u3092\u30bd\u30fc\u30c8\u3057\u305f\u3044","author_url":"https://blog.hatena.ne.jp/okazuki/","type":"rich","provider_url":"https://hatena.blog","url":"https://okazuki.hatenablog.com/entry/20100603/1275524952","version":"1.0","published":"2010-06-03 09:29:12","image_url":null,"blog_url":"https://okazuki.hatenablog.com/","description":"\u4e00\u65e6\u914d\u5217\u306b\u3057\u3066sort\u3092\u547c\u3076\u3068\u3088\u3055\u3052\u3002 h = {\"4\" => \"d\", \"1\" => \"a\", \"2\" => \"b\", \"10\" => \"aaa\" } sorted = h.to_a.sort do |a, b| a[0] <=> b[0] end p sorted # [[\"1\", \"a\"], [\"10\", \"aaa\"], [\"2\", \"b\"], [\"4\", \"d\"]] \uff11\u3064\u8ce2\u304f\u306a\u3063\u305f\u3002","author_name":"okazuki","height":"190","provider_name":"Hatena Blog","categories":["Ruby"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fokazuki.hatenablog.com%2Fentry%2F20100603%2F1275524952\" title=\"\u30cf\u30c3\u30b7\u30e5\u3092\u30bd\u30fc\u30c8\u3057\u305f\u3044 - \u304b\u305a\u304d\u306eBlog@hatena\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}