Buddha Sorts a Database