add function to test if a list is sorted
add function to generate dataframes for each data item