datatree
datatree copied to clipboard
Method to reorder nodes
WIP sketch of a new dt.reorder
method
- [x] Closes #186, using suggestion (3) in https://github.com/xarray-contrib/datatree/issues/254#issuecomment-1665946112
- [x] Tests added
- [x] Passes
pre-commit run --all-files
- [x] New functions/methods are listed in
api.rst
- [x] Changes are summarized in
docs/source/whats-new.rst
I need to rename this so as not to be confused with Dataset.reorder_levels
(which refers to levels of a MultiIndex).
See the docs build for an example of what an example of using this looks like currently
https://xarray-datatree--271.org.readthedocs.build/en/271/generated/datatree.DataTree.reorder.html