title: sort a dynamic set of data using Google Apps Script
body: <p>I have a block of data like this in a new spreadsheet:</p>
  
  <pre><code>GOODS       Count    Sort Index
  111770999     128    9
  111771000     32     0
  111771005     64     5
  111771010     64     0
  111771011     64     1
  </code></pre>
  
  <p>number of rows are dynamic, columns are fixed (3).  How can i write a script to sort by column 3 like using <code>Data-Sort</code> Range in the spreadsheet?  Many thanks in advance!</p>