title: How to sort ignoring the blank line
body: <p>I have a data looks like this</p>
  
  <pre><code>&lt;some blah! blah!&gt;|201451|&lt;some blah! blah!&gt;
  
  &lt;some blah! blah!&gt;|201441|&lt;some blah! blah!&gt;
  
  &lt;some blah! blah!&gt;|201431|&lt;some blah! blah!&gt;
  
  &lt;some blah! blah!&gt;|201421|&lt;some blah! blah!&gt;
  </code></pre>
  
  <p>I have to sort it to </p>
  
  <pre><code>&lt;some blah! blah!&gt;|201421|&lt;some blah! blah!&gt;
  
  &lt;some blah! blah!&gt;|201431|&lt;some blah! blah!&gt;
  
  &lt;some blah! blah!&gt;|201441|&lt;some blah! blah!&gt;
  
  &lt;some blah! blah!&gt;|201451|&lt;some blah! blah!&gt;
  </code></pre>
  
  <p>I have tried using both these:</p>
  
  <pre><code>sort -t"|" -k4.5,4.6 -b data
  LC_ALL=c sort -t"|" -k4.5,4.6 -b data
  </code></pre>
  
  <p>but it always gives me</p>
  
  <pre><code>&lt;FOUR BLANK SPACE&gt;
  &lt;some blah! blah!&gt;|201421|&lt;some blah! blah!&gt;
  &lt;some blah! blah!&gt;|201431|&lt;some blah! blah!&gt;
  &lt;some blah! blah!&gt;|201441|&lt;some blah! blah!&gt;
  &lt;some blah! blah!&gt;|201451|&lt;some blah! blah!&gt;
  </code></pre>
  
  <p>I want to maintain the space with the sorted value. How do I do so??</p>
  
  <p>Basically I have to ignore the line space and not remove them...</p>