#496 added metadata to edges, however `table_sorter_sort_edges` doesn't sort the metadata, leading to edges' metadata being mixed.