prevAll:uniqueAll: Add uniqueAll, use it in reverse doc order examples #1216
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
.prevAll()
returns elements in the reverse document order. Thiscan pose issues when used with APIs like
.append()
or.wrapAll()
.Document how to deal with the issue with help from
jQuery.uniqueSort()
.Ref gh-1215
Ref jquery/jquery#5149
This is another version of #1215, meant to be merged after jQuery 3.7.0 gets released.
This PR includes a stub for the
3.7
category and changes the jQuery version used in examples to the3.x-git
one. This needs to be changed to the real3.7.0
one after that version gets released. Those two issues need to be addressed before this PR is moved out of the draft status. However, other than that, the PR is ready for reviews.Screenshots
.prevAll()
Screenshots of the
.prevAll()
page changes from this PR:.uniqueSort()
Screenshots of the new


.uniqueSort()
page (there's also a second example at the end that's a copy of the.prevAll()
one: