output cooc relations sorted