title: Reversing order in incrementing digits
body: <p>I have a list of numbers, and I'm trying to do the following in a way as efficient as possible.</p>
  
  <p>For each consecutively incrementing chunk in the list I have to reverse its order.</p>
  
  <p>This is my attempt so far:</p>
  
  <pre><code>l = []
  l_ = []
  i = 0
  while i &lt;= len(a)-1:
      if a[i] &lt; a[i+1]:
          l_= l_ + [a[i]]
      else:
          l = l_ + [a[i]]
          l_ = []
      i = i + 1
  </code></pre>
  
  <p>I'd appreciate any guidance or other approaches.</p>
  
  <p>So, for the following list:</p>
  
  <pre><code>a = [1,5,7,3,2,5,4,45,1,5,10,12]
  </code></pre>
  
  <p>I would like to obtain:</p>
  
  <pre><code>[7,5,1,3,5,2,45,4,12,10,5,1]     
  </code></pre>