Explore this - idea is that we could prep TableCollection without Python. See https://tskit.dev/tskit/docs/stable/python-api.html#tskit.TableCollection.sort and https://tskit.dev/tskit/docs/stable/python-api.html#tskit.TableCollection.sort_individuals and https://tskit.dev/tskit/docs/stable/python-api.html#tskit.TableCollection.canonicalise