Sorting stocks