title: Python: Split list in subsets if the current element is minor than previous element
body: <p>I have the following python list:</p>
  
  <pre><code>my_list = [1, 2, 3, 1, 2, 1, 2, 3]
  </code></pre>
  
  <p>I am looking for a efficient way to split a list in several sublist only if the current element is minor than the previous element.</p>
  
  <p>In the example, I should get:</p>
  
  <pre><code>result = [[1,2,3],[1,2],[1,2,3]]
  </code></pre>
  
  <p>I should get three subsets since 1&lt;3 and 1&lt;2.</p>
  
  <p>I am only getting the first elements with this solution:</p>
  
  <pre><code>[[x] for index, x in enumerate(my_list) if index &lt; 1 or x &lt; my_list[index - 1]]
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>[[1], [1], [1]]
  </code></pre>
  
  <p>Another try with the same result:</p>
  
  <pre><code>[ [my_list[x]] for x in range(len(my_list)) if my_list[x] &lt; my_list[x-1]]
  </code></pre>