Understanding call Priority

I am trying to understand how the queue priority works on a blended campaign. My understanding is that if you have a campaign with the Queue priority set to 30 and two In-groups one Queue priority set to 20 and on set to 40. That the one in-group set to 40 will take priority followed by the outbound calls from the campaign and then finale the in-group set to 20. Am I understanding this correctly?