title: Sorting rows with my date column in python
body: <pre><code>   date     time  Sno
  03-05-2022  12:0   1
  03-05-2022  1:30   2
  03-06-2021  12:0   22
  03-06-2021  1:30   23
  03-07-2021  12:0   42
  .
  .
  .
  </code></pre>
  <p>I was able to sort <code>date</code> column separately as below:</p>
  <pre><code>['03-05-2021',
   '03-05-2021',
   '04-05-2021',
   '04-05-2021',
   '05-05-2021',
   '05-05-2021',
   '06-05-2021',
   '06-05-2021',
    .
    .
    .
  </code></pre>
  <p>using this python code:</p>
  <pre><code>from datetime import datetime
  days_sorted = sorted(train.date, key=lambda day: datetime.strptime(day, &quot;%d-%m-%Y&quot;))
  days_sorted
  </code></pre>
  <p>I need to arrange my <code>time</code> column and <code>Sno</code> column also when <code>date</code> column is sorted. How to achieve this?</p>
  <p><strong>Desired result:</strong></p>
  <pre><code>   date     time  Sno
  03-05-2022  12:0   1
  03-05-2022  1:30   2
  04-05-2021  12:0   3
  04-05-2021  1:30   4
  05-05-2021  12:0   5
  .
  .
  .
  </code></pre>