Attempting to add sorting to word tree

qSort is being a pain and not working how I think it should