title: Sort pandas dataframe by customize way
body: <p>I have tried a lot to sort DataFrame column on my own way. But could not be able to correctly do it. So refer given code and let me know what is the additional syntax to do the job.</p>
  <pre><code>df = pd.DataFrame({'TC': {0: '1-1.1', 1: '1-1.2', 2: '1-10.1', 3: '1-10.2', 4: '1-2.1', 5: '1-2.1', 6: '1-2.2', 7: '1-20.1', 8: '1-20.2', 9: '1-3.1'}, 'Case': {0: 'A', 1: 'B', 2: 'C', 3: 'D', 4: 'E', 5: 'F', 6: 'G', 7: 'H', 8: 'I', 9: 'J'}})
  df.sort_values([&quot;TC&quot;], ascending=[True])
  print (df)
  </code></pre>
  <p>This code does not give desire output. I need the Dataframe sorted as per below.</p>
  <p><a href="https://i.stack.imgur.com/uKf6k.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uKf6k.png" alt="enter image description here" /></a></p>