Order by multiple properties sequentially · Issue #1160 · fluentassertions/fluentassertions · GitHub
Skip to content

Order by multiple properties sequentially #1160

Description

@d1mnewz

This is an idea / feature request:

It makes sense to enable sequential ordering.
My use-case is that I want to verify that a collection was sorted first by a Name, then by Id.

Is there any way of doing that using assertions such as BeInAscendingOrder and not by using predefined expected collection?
My expectation was to have something like results.Should().BeInAscendingOrder(x => x.Name).And.BeInAscendingOrder(x => x.Id);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions