title: Rails 3 + Sorting of Years in descending with days
body: <p>In Rails, I am trying to create two dimensional but while searching a lot, I found most of the people suggest that in place of <code>Array, HASH</code> has to be used.</p>
  
  <p>Here I am trying to build an array of years having descending orders, but I get this years randomly so I used array sort. Problem arises here, I want to pass one more value with the year like number of days with every year. </p>
  
  <p>So while sorting, I will loose the related values present in another array.</p>
  
  <p>Example :  </p>
  
  <pre><code>   year = ["1990", "1995", "2010", "1985" ]
     days = [ '10', '20', '2', '50' ]
  </code></pre>
  
  <p>Now I am not able to sort days as per year descending.</p>