external patricia trie sort added...