I do have the strong feeling that something is really, really wrong here. Sorry, really not meant to be personal. I'm really curious and a bit terrified. Using a hash for sorting? Who does this? You can not use it for sorting anyway. It will be wrong after the first few characters.