title: How do I sort a multidimensional table in Lua?
body: <p>I have a table consisting basically of the following:</p>
  
  <pre><code>myTable = {{1, 6.345}, {2, 3.678}, {3, 4.890}}
  </code></pre>
  
  <p>and I'd like to sort the table by the decimal values. 
  So I'd like to the output to be:</p>
  
  <pre><code>{{2, 3.678}, {3, 4.890}, {1, 6.345}}
  </code></pre>
  
  <p>If possible, I'd like to use the table.sort() function. Thankyou in advance for the help :-)</p>