title: order dataframe by timestamp while keeping same id as consecutive row
body: <p>I have a dataframe consisting of eventlog and ordered by the time of which each event is saved.
  The logs/row correspond to tasks and have an ID and I would like to move the event/row from the same first ID (first event/timestamp for that id) under the first occurance of an ID.</p>
  
  <p>I tried a simple pd.sort_value() by both columns but I can't get the desired result</p>
  
  <p>the final result would look like</p>
  
  <pre><code>ID    time
  X     01/01/2010
  X     03/01/2010
  X     04/01/2010
  J     02/01/2010
  J     03/01/2010
  Y     03/01/2010
  Y     07/01/2010
  Y     08/01/2010
  </code></pre>