sort list of data sets