Issue #2319827: Sort agents on the listing page according to status