title: Sorting columns with gaps in Excel / Google Sheets
body: <p>I'd like to sort several columns in google sheets, but with gaps where there are no matching values in other columns present.</p>
  
  <p>See my example:</p>
  
  <p>Start:</p>
  
  <pre><code>c   a   z
  a   k   d
  d   x   f
  e   b   m
  x   e   b
  </code></pre>
  
  <p>Sorted:</p>
  
  <pre><code>a   a   
      b   b
  c
  d       d
  e   e   
          f
      k
          m
  x   x
          z
  </code></pre>
  
  <p>So, is this possible in google sheets and/or Excel? I would prefer google spreadsheets if possible.</p>