Reorder tables for easy copy/paste