Datatable partial sorting eficient
<p>Need to order a <code>datatable</code> by partial condition. Have a <code>datatable</code> in this way: </p>



<pre class="lang-none prettyprint-override"><code>[0]: P01,10,01; 
[1]: P01,10,02;
     ... 
[n]: P03,10,01;
     ... 
[m]: P03,10,02;
</code></pre>

<p>What I need to do is ordering the <code>datatable</code> by a partial portion of data; Example: When first row is odd it must be in descending order, while a pair must by in ascending.
The value returned must look like:</p>

<pre class="lang-none prettyprint-override"><code>[0]: P02,10,01; 
[1]: P02,10,02;
     ... 
[n]: P03,10,03;
     ... 
[m]: P03,10,02;
</code></pre>

<p>I know that a sort in <code>datatable</code> and default dataview can do that.<br>
How can I sort this data in a <code>datatable</code>?</p>
