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

Add ImmutableArray extension methods for ordering #10608

Merged
merged 8 commits into from
Jul 16, 2024

Commits on Jul 10, 2024

  1. Add ImmutableArray extension methods for ordering

    This change introduces four sets of extension methods with overloads:
    
    - OrderAsArray(...)
    - OrderDescendingAsArray(...)
    - OrderByAsArray(...)
    - OrderByDescendingAsArray(...)
    
    Each of these operates on an `ImmutableArray<T>` and returns an `ImmutableArray<T>`.
    DustinCampbell committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    3b2da77 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2024

  1. Remove unused usings

    DustinCampbell committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    91113cc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e4cfab9 View commit details
    Browse the repository at this point in the history
  3. Improve perf of ImmutableArray Order* extension methods

    1. Don't sort if the array has zero or 1 element.
    2. Don't sort if the array or the keys are already ordered.
    3. Avoid creating an `IComparer<T>` until its time to actually sort
    
    Add tests for Comparison<T> overloads
    DustinCampbell committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    4f19d2f View commit details
    Browse the repository at this point in the history
  4. Fix indentation

    DustinCampbell committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    ca16fcb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ff73a1d View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

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

Commits on Jul 15, 2024

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