Table of Contents

Class EnvironmentOrdering

Namespace
Quilt4Net.Toolkit.Features.ApplicationInsights
Assembly
Quilt4Net.Toolkit.dll

Helpers for ordering environment names consistently across the version matrix UI.

public static class EnvironmentOrdering
Inheritance
EnvironmentOrdering
Inherited Members

Fields

DefaultOrder

The default order applied when no EnvironmentOrder is configured.

public static readonly IReadOnlyList<string> DefaultOrder

Field Value

IReadOnlyList<string>

Methods

Order(IEnumerable<string>, IReadOnlyList<string>)

Order environments by the supplied preferredOrder: listed names first (in the supplied order), then unlisted names alphabetically, then (unknown) last. When preferredOrder is null/empty, DefaultOrder is used.

public static IReadOnlyList<string> Order(IEnumerable<string> environments, IReadOnlyList<string> preferredOrder = null)

Parameters

environments IEnumerable<string>
preferredOrder IReadOnlyList<string>

Returns

IReadOnlyList<string>