A comparison-based sorting algorithm that sorts an array by constructing a binary search tree from the elements and then traversing the tree in-order to get a sorted array.