title: Sorting 1 million queries
body: <pre><code>I have 1 million queries on disk to sort, my local memory/cache can store
  up to 1 thousand queries, how can I perform sort?
  </code></pre>
  
  <p>This is a google interview question. Can someone help me find the answer?</p>