alamb opened a new pull request, #6441: URL: https://github.com/apache/arrow-rs/pull/6441
# Which issue does this PR close? <!-- We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123. --> Related to https://github.com/apache/datafusion/issues/12446 # Rationale for this change While working on https://github.com/apache/datafusion/pull/12562 I found I kept having to do mental gymnastics to remember the default value of `SortOptions` I also found creating them was a bit confuisng as if I want to make `ASC` the default I have to do `descending: false` and the double negative was making my head hurt. # What changes are included in this PR? 1. Add additional documentation 2. Add builder style APIs that permits configuring an `ASC` sort with `options.asc()` rather than `descending:false` 3. # Are there any user-facing changes? New API and docs, no changes to existing APIs <!-- If there are user-facing changes then we may require documentation to be updated before approving the PR. --> <!--- If there are any breaking changes to public APIs, please add the `breaking change` label. --> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
