agent sorting
sorting agents