title: Pythonic way to check if a list is sorted or not
body: <p>Is there a pythonic way to check if a list is already sorted in <code>ASC</code> or <code>DESC</code></p>
  
  <pre><code>listtimestamps = [1, 2, 3, 5, 6, 7]
  </code></pre>
  
  <p>something like <code>isttimestamps.isSorted()</code> that returns <code>True</code> or <code>False</code>.</p>
  
  <p>I want to input a list of timestamps for some messages and check if the the transactions appeared in the correct order.</p>