set orsort order functionality on trajectories order inside shcedule list