sort labels and cite keys