title: How to sort by two fields (one numeric, one string) at the same time using the built in "sort" program?
body: <p>I have a file, lets say "bigfile", with tabular data of the following form,</p>
  
  <p>a1 b2 a3 1<br>
  b1 a2 c3 0<br>
  ... and so on.</p>
  
  <p>I want to use the built-in "sort" program on my Linux machine so sort this file by the fourth field(numeric) and then by the first field at the same time. I went through the man pages a couple of times and all I could come up with was,</p>
  
  <pre><code>sort -n -k4,4 -k1,1 bigfile
  </code></pre>
  
  <p>Is there a way to make "sort" do what I want or I have to write my own custom program?</p>
  
  <p>Thank you.</p>