title: javascript - HTML5 local storage sort order
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3959817/html5-local-storage-sort">HTML5 local storage sort</a>  </p>
  </blockquote>
  
  
  
  <p>I am storing data into a localstorage using HTML5 
  I need to have it sort in the order I put them in.
  Originally, I had them start with Q: and then appended data to it.
  I found out taht when I retrieved the data, it did not come out in the same order I entered them in.
  I then did someting like 1Q:.., 2Q:.. + ..</p>
  
  <p>but found that it again did not sort in the order I needed them in. </p>
  
  <pre><code>      localStorage.getItem(... )
  </code></pre>
  
  <p>Wondering how I can tell it what sort order to retrieve the data in? </p>
  
  <p>I have the key as such:</p>
  
  <pre><code>1Q:fdf
  2Q:dfdf
  3Q:dfdf
  </code></pre>
  
  <p>For the value is is random values.
  I as hoping that having the key in a certain order may make it work.</p>