Well, I spent an hour or so fiddling with the combinations, and I think it's the price first, position second, though maybe if the price difference (or position difference) is large enough then it could be different. It's seriously annoying me though, as ideally I'd want a random combination of equipment. The assignment algorithm itself is hard-coded, isn't it?