Make a Node with the same entries but sorted according to sorting.
Sort by “color” in ascending order, and then by “height” in descending order.
>>> from tiled.client import ASCENDING, DESCENDING >>> tree.sort(("color", ASCENDING), ("height", DESCENDING))
1may be used as a synonym for
-1may be used as a synonym for