title: c# - Parsing Html tables and sorting the rows
body: <p>I'm fairly new to C# and I wanted to parse an HTML table and sort the rows based on the first column. Below is a sample table:</p>
  
  <pre><code>&lt;table&gt;
      &lt;tr&gt;
         &lt;td&gt; Xyz &lt;/td&gt;
         &lt;td&gt; 123 &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
         &lt;td&gt; Abc &lt;/td&gt;
         &lt;td&gt; 789 &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
         &lt;td&gt; Ghi &lt;/td&gt;
         &lt;td&gt; 345 &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I'm already able to get the values using HtmlAgilityPack but I'm not sure how I can make a somewhat key-value pair of  and  in order to sort and display them in a table like this:</p>
  
  <pre><code>Abc 789
  Ghi 345
  Xyz 123
  </code></pre>