make agent list sorted