capitalizing the first letter of every string using map and split methods
adding the sort feature to the list method