export list into sorted order