Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting documentation fixups for 1.9 #48440

Merged
merged 5 commits into from
Jan 30, 2023
Merged

Conversation

LilithHafner
Copy link
Member

@LilithHafner LilithHafner commented Jan 28, 2023

Cherrypicks changes that should be backported to 1.9 from #48387 and #48363.

Part of an effort to break up those two PRs into smaller chunks so that they can merge more easily, starting with backports so that the backporting process can be more automatic.

  • Fix objective typos
  • Clarify that ! means mutation, not "in-place-ness". This should be backported because sort! is even less in place in 1.9 than it already was in 1.8.
  • Rewrite the section on default policy to reflect the new default policy
  • Move examples and extended description of previously default sorting algorithms out of sort.md and into their respective docstrings (still rendered in sort.md)

Requesting review from @knuesel, an author of some of these changes.

This is intended to update the documentation for everything that changed in 1.9 and therefore fixes #47789

knuesel and others added 4 commits January 28, 2023 09:36
In particular:

* document the `order` keyword in `sort!`
* list explicitly the required properties of `lt` in `sort!`
* clarify the sequence of "by" transformations if both `by` and `order` are given
* show default values in the signatures for `searchsorted` and related functions
* add `isunordered` to the manual (it's already exported)
@LilithHafner LilithHafner added docs This change adds or pertains to documentation sorting Put things in order backport 1.9 Change should be backported to release-1.9 labels Jan 28, 2023
doc/src/base/sort.md Outdated Show resolved Hide resolved
doc/src/base/sort.md Outdated Show resolved Hide resolved
Copy link
Member

@knuesel knuesel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

Note that this doesn't include any of my changes (except for two typo fixes) since they're all reverted by 23178f7 (which is totally fine with me, I'm just mentioning it in case the whole revert was done unintentionally).

@LilithHafner LilithHafner merged commit a1c4d85 into master Jan 30, 2023
@LilithHafner LilithHafner deleted the sort-doc-for-backport branch January 30, 2023 15:58
@LilithHafner
Copy link
Member Author

I reverted anything that I felt could plausibly be objectionable so that we can merge this more easily and take a bit of the diff off the table when discussing the remaining PRs

KristofferC pushed a commit that referenced this pull request Feb 1, 2023
- Fix typos
- Clarify that ! means mutation, not "in-place-ness". This should be backported because sort! is even less in place in 1.9 than it already was in 1.8.
- Rewrite the section on default policy to reflect the new default policy
- Move examples and extended description of previously default sorting algorithms out of sort.md and into their respective docstrings (still rendered in sort.md)

Co-authored-by: Jeremie Knuesel <[email protected]>
(cherry picked from commit a1c4d85)
@KristofferC KristofferC mentioned this pull request Feb 1, 2023
35 tasks
@KristofferC KristofferC removed the backport 1.9 Change should be backported to release-1.9 label Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation sorting Put things in order
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Revise sort.md
4 participants