ToDo list updated to add a new switch function, calls funtion and retruns list back to user sorted in a new organized way.