title: Wordpress: How to sort posts on a custom field
body: <p>I want to display a list of post titles from a custom taxonomy in a particular order. 
  I thought the best way to control the order would be to add a custom field and sort on that custom field.</p>
  
  <p>The problem I'm having is that I'm trying to use the built-in functionality of Wordpress and I can't find a way to add sort functionality.</p>
  
  <p>My Scenario looks like this
  The calling url is ...com/taxonomy/term</p>
  
  <p>This calls up a template, the filename of which is taxonomy-taxonomyname-term.php</p>
  
  <p>My template is simply the index.php template renamed and edited to contain this loop</p>
  
  <pre><code>&lt;?php if ( have_posts() ) : ?&gt;
  
  &lt;?php twentyeleven_content_nav( 'nav-above' ); ?&gt;
  &lt;ul&gt;
  &lt;?php /* Start the Loop */ ?&gt;
  &lt;?php while ( have_posts() ) : the_post(); ?&gt;
  &lt;li&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;" title="&lt;?php the_title_attribute( array( 'before' =&gt; 'Permalink to: ', 'after' =&gt; '' ) ); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
  
  &lt;?php endwhile; ?&gt;
  &lt;/ul&gt;
  &lt;?php twentyeleven_content_nav( 'nav-below' ); ?&gt;
  
  &lt;?php else : ?&gt; etc
  </code></pre>
  
  <p>This displays a list of titles but I can't find a way to control the order of the titles.</p>
  
  <p>The only way I've seen to set the order of a group of posts is to define the order of the posts in the query. But of course in this case I dont have a query because I  already have the posts via the calling url.</p>
  
  <p>Is there any way to add sort functionality without adding another query or is the query mandatory.</p>