title: Sort on custom field
body: <p>I need your help with my widget type code for wordpress. I have a custom field called <code>ordermetakey</code>. I need this below box to sort the posts on this custom field <code>ASC</code>. Its a numeric <code>timestamp</code>.               </p>
  
  <pre><code>&lt;div class="list-block"&gt;
      &lt;ul&gt;
         &lt;?php $postslist = get_posts('numberposts=5'); foreach ($postslist as $post) : setup_postdata($post); ?&gt;
         &lt;li&gt;
            &lt;p&gt;&lt;strong&gt;&lt;a title="Post: &lt;?php the_title(); ?&gt;" href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/strong&gt;&lt;br \&gt; &lt;span&gt;&lt;?php echo get_post_meta($post-&gt;ID, 'standplaats', true); ?&gt;&lt;/span&gt;&lt;/p&gt;
         &lt;/li&gt;
    &lt;?php endforeach; ?&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>