func authenticationSort(result *did.Document) less {
    return func(i, j int) bool {
        is := result.Authentication[i].ID.String()
        js := result.Authentication[j].ID.String()
        return strings.Compare(is, js) == -1