I am using AnyLogic 8 University 8.7.0 version and doing Agent Based Modelling. When I create an agent population of Passenger agents, they are being created in FIFO sequence (default behaviour of AnyLogic) but after transitioning through a Branch, the order in which Passenger agents come out changes to LIFO. For my requirement, maintaining FIFO order throughout model execution is critical.
Using a Queue Block (Process Modelling Library) is not possible in my case (from what I have read) since I am primarily doing Agent based modelling and it might not be possible to connect Process Modelling blocks with State Charts (Agent Based Modelling). Another workaround that I tried is to sort the Passenger agents based on a parameter/variable like Passenger_Name but I have not been able to do so successfully.
Any help regarding possible workarounds to solve this issue would be really helpful. Thanks.