Order two numerical lists: Difference between revisions

(10 solutions without any questions or discussions. i think we can promote this...)
Line 159:
return a[0] < b[0];
}</lang>
Pikes <code>Array.sort_array()</code> function can sort an array of arrays using the <code><</code> operator, but it will sort longer arrays before shorter ones. Therefore the above function is still needed if the intent is to use the comparison for a sort operation.
 
=={{header|Python}}==
Anonymous user