The use of cost‐based priorities in random and flow shops