I would replace this by an order parameter that does both, picking and sorting.