<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lesamoureuses</author_name>
  <author_url>https://blog.hatena.ne.jp/lesamoureuses/</author_url>
  <blog_title>こんにちはこんにちはmonmonです！</blog_title>
  <blog_url>https://monmon.hateblo.jp/</blog_url>
  <categories>
    <anon>mysql</anon>
    <anon>CakePHP</anon>
  </categories>
  <description>where句のINの並び順で結果をsortしたいときはORDER BY FIELDを使うの続きfindのorderの所で &lt;?php array('order' =&gt; array('FIELD(Country.id, 4, 1, 5, 3, 6, 2)')) と書けばいい。 参照 http://cakebaker.42dh.com/2008/06/10/order-by-field/ Ok, let’s do some examples to learn more about it. We will use the following countries table: [1] =&gt; USA […</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmonmon.hateblo.jp%2Fentry%2F20120507%2F1336375838&quot; title=&quot;CakePHPでwhere句のINの並び順で結果をsortしたいときはORDER BY FIELDを使う - こんにちはこんにちはmonmonです！&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>2012-05-07 16:30:38</published>
  <title>CakePHPでwhere句のINの並び順で結果をsortしたいときはORDER BY FIELDを使う</title>
  <type>rich</type>
  <url>https://monmon.hateblo.jp/entry/20120507/1336375838</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
