Skip to content

feat: add sort method to array/bool#2363

Merged
kgryte merged 2 commits intostdlib-js:developfrom
Jaysukh-409:sort
Jun 12, 2024
Merged

feat: add sort method to array/bool#2363
kgryte merged 2 commits intostdlib-js:developfrom
Jaysukh-409:sort

Conversation

@Jaysukh-409
Copy link
Copy Markdown
Member

Resolves: Subtask of #2304

Description

What is the purpose of this pull request?

This pull request:

  • Adds the typed array sort method to prototype of BooleanArray

Related Issues

Does this pull request have any related issues?

This pull request:

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.

Checklist

Please ensure the following tasks are completed before submitting this pull request.


@stdlib-js/reviewers

@kgryte kgryte added the Feature Issue or pull request for adding a new feature. label Jun 12, 2024
Comment thread lib/node_modules/@stdlib/array/bool/README.md Outdated
Comment thread lib/node_modules/@stdlib/array/bool/benchmark/benchmark.sort.js Outdated
Comment thread lib/node_modules/@stdlib/array/bool/benchmark/benchmark.sort.length.js Outdated
Comment thread lib/node_modules/@stdlib/array/bool/docs/types/index.d.ts Outdated
Comment thread lib/node_modules/@stdlib/array/bool/lib/main.js Outdated
Comment thread lib/node_modules/@stdlib/array/bool/test/test.sort.js Outdated
Copy link
Copy Markdown
Member

@kgryte kgryte left a comment

Choose a reason for hiding this comment

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

Thanks for working on this, @Jaysukh-409. Main comment is that the example comparison function should be updated, as a three-way comparison does not make sense for booleans.

Copy link
Copy Markdown
Member

@kgryte kgryte left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @Jaysukh-409!

@kgryte kgryte merged commit d71d044 into stdlib-js:develop Jun 12, 2024
@kgryte kgryte deleted the sort branch June 12, 2024 18:13
aman-095 pushed a commit to aman-095/stdlib that referenced this pull request Jun 13, 2024
PR-URL: stdlib-js#2363
Ref: stdlib-js#2304
Reviewed-by: Athan Reines <kgryte@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature Issue or pull request for adding a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants