title: How to sort datatable with multi column using LINQ
body: <p>I have a Datatable contain n columns. I want to sort n columns in the datatable by LINQ but I don't know how to do that. I sorted successfully with 1 columns but I didn't with multi columns</p>
  
  <p>Ex:</p>
  
  <pre><code>Dictionary&lt;string, string&gt; dict = Dictionary&lt;string, string&gt;
  dict.Add("column_1", "asc");
  dict.Add("column_2", "asc");
  dict.Add("column_3", "asc");
  ...
  dict.Add("column_n", "asc");
  var Rows = from row in datatable.AsEnumerable()
             orderby n1 acsending  (I need loop to add all columns in Dictionary here to sort multi columns)
             select row 
  </code></pre>
  
  <p>How to loop n columns to add in orderby operator.</p>
  
  <p>My problem is user have a array contain name of columns to sort and I need loop a array to add columns name in operator orderby to sort multi column</p>
  
  <p>PS: My English is not good. Sorry</p>
  
  <p>Thanks
  Nguyen</p>