title: wordpress menu_order not working
body: <p>I don't know what is wrong with menu_order but the posts are not displayed as I want. Here is what I mean</p>
  
  <p>I have 3 posts in my blog. Here is how db looks like</p>
  
  <pre><code>id ..... menu_order
  56 ..... 2
  59 ..... 5
  65 ..... 3
  </code></pre>
  
  <p>index.php (my custom theme)</p>
  
  <p>I want to display only image so here is the code that I use</p>
  
  <pre><code>&lt;?php while ( have_posts() ) : the_post(); 
       $images = get_children(
                              array( 'post_parent'    =&gt; $post-&gt;ID, 
                                     'post_type'      =&gt; 'attachment', 
                                     'post_mime_type' =&gt; 'image', 
                                     'orderby'        =&gt; 'menu_order', 
                                     'order'          =&gt; 'DESC', 
                                     'numberposts' =&gt; 999 ) 
                                  );
       if( $images ) 
           {
              $total_images = count( $images );
                  $image = array_shift( $images );
                  echo wp_get_attachment_image($image-&gt;ID, 'full', 0, array('id' =&gt; 'photo'));
           }
  
      endwhile; // end of the loop. 
      ?&gt;
  </code></pre>
  
  <p>The problem is that the posts are displayed in order with id 65,59,56 and not as I expect 59,65, 56</p>
  
  <p>What is wrong with this ?</p>