A treasure sorter