title: Greasemonkey script and sorting elements
body: <p>I'm doing a small script to add functionality to the facebook find friends page: basically order the suggested friends by mutual friends.</p>
  
  <p>The code can be found here: <a href="http://pastebin.com/x6Ss326A" rel="nofollow">http://pastebin.com/x6Ss326A</a></p>
  
  <p>I've tested the script modularly, so I know the paths, sorting function are ok. I've used the same technique to sort items in a odered list with simple text, successfully. The problem is in the behaviour of the sorting method, but I cant figure out what's wrong.</p>
  
  <p>Any suggestions?</p>