title: How to sort a 'query_posts' function by custom field, while limiting posts by another custom field
body: <p>I'm querying a series of posts in WP with the following function: </p>
  
  <pre><code>&lt;?php 
  $thirtydays = date('Y/m/d', strtotime('+30 days'));
  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  query_posts( array( 
      'post_type' =&gt; array('post', 'real-estate'), 
      'meta_key' =&gt; 'Time          Available', 
      'meta_compare' =&gt; '&lt;=', 
      'meta_value' =&gt; $thirtydays, 
      'paged' =&gt; $paged )); 
  ?&gt;
  </code></pre>
  
  <p>This part is working fine. It's basically pulling all my Real Estate posts, but only returning results that have a 'Time Available' of 30 days or less.</p>
  
  <p>I need this to also order the posts in ascending order from low to high using the data from another custom field, 'Price.' </p>
  
  <p>Whenever I add the standard <code>'orderby' =&gt; 'meta_value', 'meta_key' =&gt; 'Price'</code> it no longer shows results within 30 days. </p>
  
  <p>Is there any way I can combine these two? And is it possible to add a button which re-runs the query and sorts by Price, Bedrooms,  etc? Or is this too specific for WP?</p>