Problem #1b is the sorting done properly?