fix table data ordering