multi sort list of double lists : <p>I have a List of Double Lists, </p>

<pre><code>List&lt;List&lt;double&gt;&gt;
</code></pre>

<p>like this </p>

<pre><code>{ 0.0 ,  0.0 , -1.0 , 123.1 , 123.2 , 123.3 }
{ 0.0 ,  40.0 , 1.0 , 123.1 , 123.2 , 123.3 }
{ 1.0 ,  40.0 , 1.0 , 123.1 , 123.2 , 123.3 }
{ 1.0 ,  0.0 , -1.0 , 123.1 , 123.2 , 123.3 }
</code></pre>

<p>The list needs to be sorted by the first 3 columns; and the sort priority matches the sequence, first column sort, then second then third to provide result below</p>

<pre><code>{ 0.0 ,  0.0 , -1.0 , 123.1 , 123.2 , 123.3 }
{ 0.0 ,  40.0 , 1.0 , 123.1 , 123.2 , 123.3 }
{ 1.0 ,  0.0 , -1.0 , 123.1 , 123.2 , 123.3 }
{ 1.0 ,  40.0 , 1.0 , 123.1 , 123.2 , 123.3 }
</code></pre>

<p>how is this done?
Thx.</p>
