title: How to loop over an array sorted by one dimension in Chapel?
body: <p>Suppose our darling <code>A</code> looks like</p>
  
  <pre><code>60.0    3.0
  675.0   3.0
  1050.0  4.0
  0.0     0.0
  </code></pre>
  
  <p>I want to loop through the rows in decreasing order of the first column.  Something like...</p>
  
  <pre><code>for r in sorted(A, by=A[1,], reverse=True) {
    writeln(r);
  }
  </code></pre>
  
  <p>I'd like</p>
  
  <pre><code>1050.0  4.0
  675.0   3.0
  60.0    3.0
  0.0     0.0
  </code></pre>
  
  <p>The <a href="http://chapel.cray.com/docs/master/modules/packages/Sort.html?highlight=sort" rel="nofollow noreferrer">Sort</a> documentation does not address 2D arrays.</p>