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

Use version-sorting for all sorting #115046

Merged
merged 6 commits into from
Jan 11, 2024
Merged

Use version-sorting for all sorting #115046

merged 6 commits into from
Jan 11, 2024

Commits on Aug 21, 2023

  1. Use version-sorting for all sorting

    Add a description of a version-sorting algorithm. (This algorithm does
    not precisely match `strverscmp`; it's intentionally simpler in its
    handling of leading zeroes, and produces a result easier for humans to
    easily understand and do by hand.)
    
    Change all references to sorting to use version-sorting.
    
    Change all references to "ASCIIbetically" to instead say "sort
    non-lowercase before lowercase".
    joshtriplett committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    98d3012 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    127e052 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    47bb076 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2023

  1. Configuration menu
    Copy the full SHA
    95eb1e2 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2023

  1. Configuration menu
    Copy the full SHA
    f06df22 View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2023

  1. style-guide: Rework version-sorting algorithm

    Treat numeric chunks with equal value but differing numbers of leading
    zeroes as equal, unless we get to the end of the entire string in which
    case we use "more leading zeroes in the earliest differing chunk" as a
    tiebreaker.
    
    Treat `_` as a word separator, sorting it before anything other than
    space.
    
    Give more examples.
    joshtriplett committed Dec 23, 2023
    Configuration menu
    Copy the full SHA
    2e931b5 View commit details
    Browse the repository at this point in the history