title: Python Sort 2 different Size lists in same Order?
body: <p>I wanna sort 2 different lenght list based on elementwise order.</p>
  
  <p>I have 2 python lists which are sharing some elements like :</p>
  
  <pre><code>list_1 = [b,e,a,d,c]
  list_2 = [b,a,c,k,l,f,d]
  </code></pre>
  
  <p>i know that using itertools's zip_longest i can sort 2 different sized list:</p>
  
  <pre><code>for k,j in zip_longest(list_1 ,list_2 ,fillvalue=None):
       print (k,j)
  </code></pre>
  
  <p>And this code gives me that :</p>
  
  <pre><code>b b
  e a
  a c
  d k
  c l
  None f
  None d
  </code></pre>
  
  <p>But is it possible that sort also same values in same order like:</p>
  
  <pre><code>[a,b,c,d,e,None,None,None]
  [a,b,c,d,None,f,k,l]
  </code></pre>
  
  <p>or like that format :</p>
  
  <pre><code>a,a
  b,b
  c,c
  d,d
  e,None
  None,f
  None,k
  None,l
  </code></pre>
  
  <p>Thanks A Lot !</p>