Fix indeterminate ordering problem in stock_location_spec