Doing the list sort hw