sort two columns by value edited
<pre><code>form.myDataTable.Rows[i][2 * cs] = corr;                
form.myDataTable.Rows[i][2 * cs + 1] = "p" + Convert.ToString(col1) 
                                        + " p" + Convert.ToString(col2);
</code></pre>

<p>I need to sort <code>2*cs</code> column by values and also corresponding names in column <code>2*cs+1</code>.</p>

<p>I am trying like this: </p>

<pre><code>var corrvalues = new Dictionary(); 
correlationvalues["p" + Convert.ToString(col1) 
                      + " p" + Convert.ToString(col2)] = corr;
sortedvalues = correlationvalues.Values.OrderByDescending;
</code></pre>

<p>I am not clear how to use orderbydescending, i am new to c#. Thanks for help.</p>
