Made sorting function and printList
Updated sorting
Written findIndex. I dont think that there are any imortant changes anywere else, but not sure.