Dynamic NPC Queue system

Im making a game where you mess up a chef as they try to cook orders im wondering if their is a way to have a dynamic queue system kinda like the Sims where they will cook food but it can add tasks in between other tasks as well

you could use arrays. Structure and array variables - GDevelop documentation

(perhaps) you may need array tools for more array manipulations: Array tools - GDevelop documentation