title: weighted trie for autosuggest feature
body: <p>I have a trie (suffix tree) which I am using for an auto-suggest feature in my website.</p>
  
  <p>Now I want to show the most popular (most highly-weighted) text above text with a lower weight. How can I change my trie so that suggestions come out in weighted order.</p>
  
  <p>Or should I just sort by weight in memory?</p>