added a quick sample of iteration and sorting