title: Sort Dictionary (string, int) by value
body: <p>So basically I'm having an issue with the task I've been given. I won't bore you with the details of the task itself so I'll just give you the relevant info.</p>
  
  <p>I have a dictionary that I need to be sorted by the int[value] that is the highest, well the top five highest to be precise and I need to be able to show the bottom five as well. </p>
  
  <pre><code>Dictionary&lt;string, int&gt; dict = new Dictionary&lt;string, int&gt;();
  </code></pre>
  
  <p>The strings(keys) hold words that have been read for a text file. The ints (values) hold ints of how many times they were mentioned in the document.</p>
  
  <p>I was going to do it in another way but I was told to do it with a dictionary so please dictionary only help.
  I would appreciate it if you can explain how it should be done so I can learn as well as complete the task as the aim of the task is to educate myself but I'm finding it a bit hard..</p>
  
  <p>I appreciate all your help in advance, if more info is required please let me know and I'll post it!</p>