title: Making a sticky post the first post in the loop - WordPress
body: <p>I would like to get help with a issue I'm having with the WordPress sticky posts function.</p>
  
  <p>I cant figure it out how to make the stick post stick to the beginning of the loop. I have a loop similar to his:</p>
  
  <pre><code>&lt;?php query_posts('cat=10&amp;posts_per_page=3');?&gt;  
  &lt;?php if (have_posts()) : ?&gt;
  &lt;?php while (have_posts()) : the_post(); ?&gt; 
  </code></pre>
  
  <p>And I would like it to work like this:</p>
  
  <ul>
  <li>Sticky post</li>
  <li>Ordinary post</li>
  <li>Ordinary post</li>
  </ul>
  
  <p>Instead for:</p>
  
  <ul>
  <li>Ordinary post</li>
  <li>Sticky post</li>
  <li>Ordinary post</li>
  </ul>
  
  <p>Thanks for the help!</p>