title: Change the order of returned posts
body: <p>I have written a neat responsive slider for my Wordpress featured articles (feel free to use it):</p>
  
  <pre><code>&lt;?php 
      $responsive = 'on' != get_option('henrik_responsive_layout') ? false : true;
      $featured_auto_class = '';
      if ( 'on' == get_option('henrik_slider_auto') ) $featured_auto_class .= ' et_slider_auto et_slider_speed_' . get_option('henrik_slider_autospeed');
  ?&gt;
  &lt;div id="featured" class="&lt;?php if ( $responsive ) echo 'flexslider' . $featured_auto_class; else echo 'et_cycle'; ?&gt;"&gt;
      &lt;a id="left-arrow" href="#"&gt;&lt;?php esc_html_e('Previous','henrik'); ?&gt;&lt;/a&gt;
      &lt;a id="right-arrow" href="#"&gt;&lt;?php esc_html_e('Next','henrik'); ?&gt;&lt;/a&gt;
  
  &lt;?php if ( $responsive ) { ?&gt;
      &lt;ul class="slides"&gt;
  &lt;?php } else { ?&gt;
      &lt;div id="slides"&gt;
  &lt;?php } ?&gt;
          &lt;?php global $ids;
          $ids = array();
          $arr = array();
          $i=0;
  
          $featured_cat = get_option('henrik_feat_cat'); 
          $featured_num = (int) get_option('henrik_featured_num'); 
  
          if (get_option('henrik_use_pages') == 'false') query_posts("showposts=$featured_num&amp;cat=".get_cat_ID($featured_cat));
          else {
              global $pages_number;
  
              if (get_option('henrik_feat_pages') &lt;&gt; '') $featured_num = count(get_option('henrik_feat_pages'));
              else $featured_num = $pages_number;
  
              query_posts(array
                              ('post_type' =&gt; 'page',
                              'orderby' =&gt; 'menu_order',
                              'order' =&gt; 'ASC',
                              'post__in' =&gt; (array) get_option('henrik_feat_pages'),
                              'showposts' =&gt; (int) $featured_num
                          ));
          } ?&gt;
          &lt;?php if (have_posts()) : while (have_posts()) : the_post();
          global $post; ?&gt;
          &lt;?php if ( $responsive ) { ?&gt;
              &lt;li class="slide"&gt;
          &lt;?php } else { ?&gt;
              &lt;div class="slide"&gt;
          &lt;?php } ?&gt;
                  &lt;?php
                  $width = $responsive ? 960 : 958;
                  $height = 340;
                  $small_width = 95;
                  $small_height = 54;
                  $titletext = get_the_title();
  
                  $thumbnail = get_thumbnail($width,$height,'',$titletext,$titletext,false,'Featured');
  
                  $arr[$i]['thumbnail'] = get_thumbnail($small_width,$small_height,'',$titletext,$titletext,false,'Small');
                  $arr[$i]['titletext'] = $titletext;
  
                  $thumb = $thumbnail["thumb"];
                  print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, ''); ?&gt;
                  &lt;div class="featured-top-shadow"&gt;&lt;/div&gt;
                  &lt;div class="featured-bottom-shadow"&gt;&lt;/div&gt;  
                  &lt;div class="featured-description"&gt;
                      &lt;div class="feat_desc"&gt;
                          &lt;p class="meta-info"&gt;&lt;?php esc_html_e('Posted','henrik'); ?&gt; &lt;?php esc_html_e('by','henrik'); ?&gt; &lt;?php the_author_posts_link(); ?&gt; &lt;?php esc_html_e('on','henrik'); ?&gt; &lt;?php the_time(esc_attr(get_option('henrik_date_format'))) ?&gt;&lt;/p&gt;
                          &lt;h2 class="featured-title"&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
                          &lt;p&gt;&lt;?php truncate_post(410); ?&gt;&lt;/p&gt;
                      &lt;/div&gt;
                      &lt;a href="&lt;?php the_permalink(); ?&gt;" class="readmore"&gt;&lt;?php esc_html_e('Read More', 'henrik'); ?&gt;&lt;/a&gt;
                  &lt;/div&gt; &lt;!-- end .description --&gt;
          &lt;?php if ( $responsive ) { ?&gt;
              &lt;/li&gt; &lt;!-- end .slide --&gt;
          &lt;?php } else { ?&gt;
              &lt;/div&gt; &lt;!-- end .slide --&gt;
          &lt;?php } ?&gt;
          &lt;?php $ids[] = $post-&gt;ID; $i++; endwhile; endif; wp_reset_query(); ?&gt;
  &lt;?php if ( $responsive ) { ?&gt;
      &lt;/ul&gt; &lt;!-- end .slides --&gt;
  &lt;?php } else { ?&gt;
      &lt;/div&gt; &lt;!-- end #slides --&gt;
  &lt;?php } ?&gt;
  &lt;/div&gt; &lt;!-- end #featured --&gt;
  
  &lt;div id="controllers" class="clearfix"&gt;
      &lt;ul&gt;
          &lt;?php for ($i = 0; $i &lt; $featured_num; $i++) { ?&gt;
              &lt;li&gt;
                  &lt;div class="controller"&gt;
                      &lt;a href="#"&lt;?php if ( $i == 0 ) echo ' class="active"'; ?&gt;&gt;
                          &lt;?php print_thumbnail( $arr[$i]['thumbnail']['thumb'], $arr[$i]['thumbnail']["use_timthumb"], $arr[$i]['titletext'], $small_width, $small_height ); ?&gt;
                          &lt;span class="overlay"&gt;&lt;/span&gt;
                      &lt;/a&gt;
                  &lt;/div&gt;  
              &lt;/li&gt;
          &lt;?php } ?&gt;
      &lt;/ul&gt;
      &lt;div id="active_item"&gt;&lt;/div&gt;
  &lt;/div&gt; &lt;!-- end #controllers --&gt;
  </code></pre>
  
  <p>It selects a custom category and returns a custom amount of posts. The problem is that it will display the posts in the order of which they were created. <strong>I want to choose my own order</strong>, so that I can select which posts displays first and so on.</p>
  
  <p><strong>So, is it possible to select which order the returned posts are displayed?</strong> Maybe by targeting specific IDs?</p>