title: Sorting Time in hours column having ID column
body: <p>I have a question. I want to sort the TIME in ascending order for each ID, I tried simple ways but it stacks same time points of all IDs. I want separate IDs with time sorted on the basis of ascending order. thanks in advance. </p>
  
  <p>The data is </p>
  
  <pre><code>  ID    TIME    DV
  1   0   0
  1   2   1024.88
  1   12  1229.82
  1   36  1269.47
  1   4   1274.37
  1   24  1274.37
  1   8   1274.37
  1   48  1274.37
  2   0   0
  2   48  924.84
  2   4   1356.87
  2   36  1459.79
  2   12  1467.43
  2   24  1467.43
  2   8   1467.43
  2   2   1467.43
  </code></pre>