Fix default sort for agents