title: Sort Hash Tables Glib - qsort
body: <p>I'm trying to sort a GLib hash table by id that looks something like:</p>
  
  <pre><code>key - id
      {
      "Red",     2,
      "BLue",    4,
      "Yellow",  5,
      "Orange",  8
      } 
  </code></pre>
  
  <p>I'm just not sure how to approach this because <a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html" rel="nofollow noreferrer">GLib</a> does not have a sort method. I was thinking to use qsort or GCompareFunc</p>
  
  <p>Any ideas will be appreciate it!</p>