Externalize sort method in stock assignation
When using assignation for shipments, products_by_location is used to get the places and the quantities for a product. The method for sorting locations is defined inside the method assign_try. Method should be externalized to customize this sort.