Data structures · Binary search trees
The order in a binary search tree gives the smallest and largest values for one walk down, and a sorted list for one traversal.