cmd_connections: sort by direction.