add sorting to Words