title: how to sort elements in a list in R?
body: <p>I have a list elements as follows</p>
  
  <pre><code>simple_list &lt;- list(c(3,1,2))
  </code></pre>
  
  <p>Can anyone please let me know how to get the sort the above list in ascending as well as descending order?</p>
  
  <p><strong>Note:-</strong> Please tell me without using the list's <code>unlist()</code></p>