title: Does Python keep track of when something has been sorted, internally?
body: <p>For example, if I call</p>
  
  <pre><code>L = [3,4,2,1,5]
  L = sorted(L)
  </code></pre>
  
  <p>I get a sorted list. Now, in the future, if I want to perform some other kind of sort on L, does Python automatically know "this list has been sorted before and not modified since, so we can perform some internal optimizations on how we perform this other kind of sort" such as a reverse-sort, etc?</p>