list.sort initial code