<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>okinawanpizza</author_name>
  <author_url>https://blog.hatena.ne.jp/okinawanpizza/</author_url>
  <blog_title>tamakipedia</blog_title>
  <blog_url>https://okinawanpizza.hatenablog.com/</blog_url>
  <categories>
    <anon>study note</anon>
    <anon>typescript</anon>
  </categories>
  <description>sort()メソッドは、配列の要素をソートする関数のこと。 https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Array/sort 一般的なuse case 配列にsort() を実行すると昇順に並び替えてくれます。 定義した配列そのものが変更されているので、破壊的変更が加わっていることになります。 const nameList = [&quot;Batto&quot;,&quot;Atsuki&quot;,&quot;chieko&quot;,&quot;Den&quot;]; console.log(nameList.sort()) //[&quot;Atsuki&quot;, &quot;B…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fokinawanpizza.hatenablog.com%2Fentry%2F2022%2F04%2F25%2F000000&quot; title=&quot;【typescript】sortを利用して配列を並び替える - tamakipedia&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>2022-04-25 00:00:00</published>
  <title>【typescript】sortを利用して配列を並び替える</title>
  <type>rich</type>
  <url>https://okinawanpizza.hatenablog.com/entry/2022/04/25/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
