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

Editorial: Introduce definition for sorting according to lexicographic code unit order #3299

Merged
merged 1 commit into from
Apr 25, 2024

Commits on Apr 25, 2024

  1. Editorial: Better phrasing for sorting Lists of Strings (tc39#3299)

    There are a few places where Lists of Strings are sorted with the awkward
    phrasing "ordered as if an Array of the same values had been sorted using
    %Array.prototype.sort% using *undefined* as _comparefn_." Change the
    wording of this, and add a definition in the section about List
    specification types.  I find this clearer about the intention (the
    current language leaves it implicit that the sorting is by code unit),
    and more concise.
    
    This phrasing is used in several places in ECMA-402 as well, so this change will bring additional benefit there.
    ptomato authored and ljharb committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    ed82ebb View commit details
    Browse the repository at this point in the history