<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yoppy0066</author_name>
  <author_url>https://blog.hatena.ne.jp/yoppy0066/</author_url>
  <blog_title>とりあえずphpとか</blog_title>
  <blog_url>https://kimagureneet.hatenablog.com/</blog_url>
  <categories>
    <anon>swift</anon>
  </categories>
  <description>大した話じゃないけどサンプル let user1 = User(id: 1, date: &quot;2010-02-01&quot;) let user2 = User(id: 2, date: &quot;2015-02-01&quot;) let user3 = User(id: 3, date: &quot;2020-02-01&quot;) // 特定のカラムで並び替える var users = [user1, user2, user3] users.sort(by: { $0.date.compare($1.date) == ComparisonResult.orderedDescending }) dump(users) class Us…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkimagureneet.hatenablog.com%2Fentry%2F2019%2F03%2F01%2F225505&quot; title=&quot;swift4 クラス(インスタンス)の配列を特定のプロパティでソート - とりあえずphpとか&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>2019-03-01 22:55:05</published>
  <title>swift4 クラス(インスタンス)の配列を特定のプロパティでソート</title>
  <type>rich</type>
  <url>https://kimagureneet.hatenablog.com/entry/2019/03/01/225505</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
