Ensures metadata table is column-sorted