Skip to content

Implement reverse parameter for sorted built-in function#3372

Merged
chrisnovakovic merged 1 commit intothought-machine:masterfrom
chrisnovakovic:sorted-reverse
Jun 11, 2025
Merged

Implement reverse parameter for sorted built-in function#3372
chrisnovakovic merged 1 commit intothought-machine:masterfrom
chrisnovakovic:sorted-reverse

Conversation

@chrisnovakovic
Copy link
Copy Markdown
Contributor

This is optional, and behaves similarly to the reverse parameter in Python's sorted built-in function: if the value is True, the list is sorted in reverse order. This is a more efficient equivalent to reversed(sorted(...)).

This is optional, and behaves similarly to the `reverse` parameter in
Python's `sorted` built-in function: if the value is `True`, the list is
sorted in reverse order. This is a more efficient equivalent to
`reversed(sorted(...))`.
@chrisnovakovic chrisnovakovic merged commit e9b4f3a into thought-machine:master Jun 11, 2025
13 checks passed
@chrisnovakovic chrisnovakovic deleted the sorted-reverse branch June 11, 2025 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants