fixing tbms data sort in list to match table