<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>plarail_hangout</author_name>
  <author_url>https://blog.hatena.ne.jp/plarail_hangout/</author_url>
  <blog_title>Engineering Tech Dojo</blog_title>
  <blog_url>https://tech.fun-toy-life.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>Ruby 配列のソート：sort と sort_by の使い分け Ruby で配列を並べ替えるには sort と sort_by を使います。単純な並べ替えは sort、オブジェクトの特定の値でソートするなら sort_by が便利です。 早わかりまとめ メソッド 向いている用途 sort 要素を直接比較してソート sort_by 特定の値を基準にソート reverse 逆順に並べ替える min / max 最小・最大の要素を取り出す min_by / max_by 特定の値で最小・最大を取り出す sort：基本のソート numbers = [3, 1, 4, 1, 5, 9, 2, 6] p…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.fun-toy-life.com%2Fentry%2F2026%2F06%2F30%2F215327&quot; title=&quot;Ruby 配列のソート：sort と sort_by の使い分け - Engineering Tech Dojo&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-06-30 21:53:27</published>
  <title>Ruby 配列のソート：sort と sort_by の使い分け</title>
  <type>rich</type>
  <url>https://tech.fun-toy-life.com/entry/2026/06/30/215327</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
