title: How to reset row names?
body: <p>Here is a sample data set:</p>
  
  <pre><code>sample1 &lt;- data.frame(Names=letters[1:10], Values=sample(seq(0.1,1,0.1)))
  </code></pre>
  
  <p>When I'm reordering the data set, I'm losing the row names order</p>
  
  <pre><code>sample1[order(sample1$Values), ]
      Names Values
   7      g    0.1
   4      d    0.2
   3      c    0.3
   9      i    0.4
  10      j    0.5
   5      e    0.6
   8      h    0.7
   6      f    0.8
   1      a    0.9
   2      b    1.0
  </code></pre>
  
  <p>Desired output:</p>
  
  <pre><code>    Names Values
   1      g    0.1
   2      d    0.2
   3      c    0.3
   4      i    0.4
   5      j    0.5
   6      e    0.6
   7      h    0.7
   8      f    0.8
   9      a    0.9
  10      b    1.0
  </code></pre>