diff --git a/README.md b/README.md index 355cc36..5ee93dd 100644 --- a/README.md +++ b/README.md @@ -25,3 +25,9 @@ This library is forked from [go-proton-api](https://github.com/ProtonMail/go-pro Contribution is welcomed! The intention to upstream the changes are planned, once the changes to the codebase has stabalized. + +### Rebase + +As we will try to contribute back to the upstream in the future, the dev branch is always rebased against the upstream master branch. + +One important note is that we need to replace `github.com/ProtonMail/go-proton-api` with `github.com/henrybear327/go-proton-api` for all files! diff --git a/address.go b/address.go index 0f1efba..3044b2c 100644 --- a/address.go +++ b/address.go @@ -18,8 +18,8 @@ func (c *Client) GetAddresses(ctx context.Context) ([]Address, error) { return nil, err } - slices.SortFunc(res.Addresses, func(a, b Address) int { - return a.Order - b.Order + slices.SortFunc(res.Addresses, func(a, b Address) bool { + return a.Order < b.Order }) return res.Addresses, nil