I am struggling to get the below code to work, I have formatted a table so the output looks better, but I am trying to be able to sort the data by each index in the list. I