Arranging collections in phylogenetic order