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 functions is stable, as of PHP 8.0.0. #825

Merged
merged 2 commits into from
Jul 26, 2021

Conversation

mumumu
Copy link
Member

@mumumu mumumu commented Jul 26, 2021

https://www.php.net/manual/en/array.sorting.php

Updated sorting functions description, followed appendices/migration80/new-features.xml [*1].

[*1]

<para>
Sorting functions are now stable, which means that equal-comparing elements will retain their
original order.
<!-- RFC: https://wiki.php.net/rfc/stable_sorting -->
</para>

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

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

Thank you! Besides the typo, this looks good to me.

reference/array/sorting.xml Outdated Show resolved Hide resolved
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
@mumumu mumumu merged commit decde82 into php:master Jul 26, 2021
@mumumu mumumu deleted the array-sorting-is-stable-from-php8 branch July 26, 2021 14:29
sy-records added a commit to lufei/doc-zh that referenced this pull request Jul 27, 2021
shiny pushed a commit to php/doc-zh that referenced this pull request Aug 5, 2021
mumumu added a commit that referenced this pull request Aug 8, 2021
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