title: Does index help a sql select sorting performance?
body: <p>I have a SQL statement like this:</p>
  <pre><code>SELECT * FROM &quot;table1&quot; WHERE &quot;id&quot; In('1', '2', '3') ORDER BY &quot;createdAt&quot;
  </code></pre>
  <p>I think the benefit for indexing 'createdAt' column is quite minimal, since it does the select first then sort 3 rows. Am I correct? Or it's better to add indexing?</p>