Sorts an array using the tree sort algorithm. ```js const arr = [2, 5, 10, 5, 32, 6]; tree(arr); // [2, 5, 5, 6, 10, 32] tree(arr, (a, b) => b - a); // [32, 10, 6, 5, 5, 2] ``` **Update README.md**.
Sorts an array using the tree sort algorithm.
Update README.md.