Schedule agents - order

I know only a certain amout of agents can run at a time based on the agent manager or whatever you speficy. How does notes pick the agents when starting? Is it the order in which they are setup or alphabetical order by the name of the agent? Is it random how notes pick them if they have the same start time. I know some get queued until they can run.I’ve been looking around and haven’t seen this info. Thank you.