added sorting to the find command