Update README.md

I used the sorted function. This simplifies your code, making it so you don't need the print statements. You can also call on the function later!