Fixed agents_nodes filter and sort not actually used