fixed sorting of agents in agents list