833 references to OrderBy
AnalyzerRunner (2)
Aspire.Dashboard (6)
Aspire.Dashboard.Tests (5)
Aspire.Hosting.Azure.AppContainers (1)
Aspire.Hosting.PostgreSQL.Tests (1)
Aspire.Hosting.Tests (1)
BuildActionTelemetryTable (1)
BuildBoss (3)
ClientSample (1)
CodeGenerator (19)
src\Servers\Kestrel\shared\KnownHeaders.cs (19)
177.OrderBy(header => !requestPrimaryHeaders.Contains(header))
248.OrderBy(header => !responsePrimaryHeaders.Contains(header))
275.OrderBy(header => !responsePrimaryHeaders.Contains(header))
791HeadersByLength = requestHeaders.OrderBy(x => x.Name.Length).GroupBy(x => x.Name.Length),
798HeadersByLength = responseHeaders.OrderBy(x => x.Name.Length).GroupBy(x => x.Name.Length),
805HeadersByLength = responseTrailers.OrderBy(x => x.Name.Length).GroupBy(x => x.Name.Length),
974{{{Each(byLength.OrderBy(h => !h.PrimaryHeader), header => $@"
990{Each(byLength.OrderBy(h => !h.PrimaryHeader), header => $@"
1019{{{Each(byLength.OrderBy(h => !h.PrimaryHeader), header => $@"
1028{Each(byLength.OrderBy(h => !h.PrimaryHeader), header => $@"
1050{{{Each(byLength.OrderBy(h => !h.PrimaryHeader), header => $@"
1068{Each(byLength.OrderBy(h => !h.PrimaryHeader), header => $@"
1098{{{Each(byLength.OrderBy(h => !h.PrimaryHeader), header => $@"
1116{Each(byLength.OrderBy(h => !h.PrimaryHeader), header => $@"
1152{Each(loop.Headers.Where(header => header.Identifier != "ContentLength").OrderBy(h => !h.PrimaryHeader), header => $@"
1168{Each(loop.Headers.Where(header => header.Identifier != "ContentLength").OrderBy(h => !h.PrimaryHeader), header => $@"
1240{{{Each(loop.Headers.OrderBy(h => h.Index).Where(h => h.Identifier != "ContentLength"), header => $@"
1324{AppendSwitch(loop.Headers.GroupBy(x => x.Name.Length).OrderBy(x => x.Key))}
1466{AppendQPackSwitch(h.QPackStaticTableFields.OrderBy(t => t.Index).ToList())}
ConfigurationSchemaGenerator (1)
dotnet-dev-certs (2)
dotnet-getdocument (1)
dotnet-openapi (1)
dotnet-sql-cache (1)
dotnet-svcutil-lib (5)
dotnet-user-jwts (1)
dotnet-user-secrets (1)
GetDocument.Insider (1)
illink (1)
installer.tasks (4)
Microsoft.AspNetCore.Analyzer.Testing (2)
Microsoft.AspNetCore.Analyzers.Test (3)
Microsoft.AspNetCore.App.Analyzers.Test (1)
Microsoft.AspNetCore.App.UnitTests (15)
Microsoft.AspNetCore.Components (1)
Microsoft.AspNetCore.Components.Analyzers (1)
Microsoft.AspNetCore.Components.Analyzers.Tests (3)
Microsoft.AspNetCore.Components.Endpoints.Tests (8)
Microsoft.AspNetCore.Components.Forms.Tests (2)
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (3)
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.Components.Tests (1)
Microsoft.AspNetCore.Cors.Test (6)
Microsoft.AspNetCore.DataProtection (3)
Microsoft.AspNetCore.DataProtection.Tests (4)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
Microsoft.AspNetCore.Diagnostics (4)
Microsoft.AspNetCore.Grpc.Swagger.Tests (3)
Microsoft.AspNetCore.Hosting.Tests (4)
Microsoft.AspNetCore.Http.Abstractions.Tests (19)
RouteValueDictionaryTests.cs (16)
124dict.OrderBy(kvp => kvp.Key),
146dict.OrderBy(kvp => kvp.Key),
198dict.OrderBy(kvp => kvp.Key),
215dict.OrderBy(kvp => kvp.Key),
241dict.OrderBy(kvp => kvp.Key),
293dict.OrderBy(kvp => kvp.Key),
321dict.OrderBy(kvp => kvp.Key),
374dict.OrderBy(kvp => kvp.Key),
392dict.OrderBy(kvp => kvp.Key),
595dict.OrderBy(kvp => kvp.Key),
643dict.OrderBy(kvp => kvp.Key),
855dict.OrderBy(kvp => kvp.Key),
883dict.OrderBy(kvp => kvp.Key),
905dict.OrderBy(kvp => kvp.Key),
926dict.OrderBy(kvp => kvp.Key),
945dict.OrderBy(kvp => kvp.Key),
Microsoft.AspNetCore.HttpLogging.Tests (6)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (30)
ApiResponseTypeProviderTest.cs (17)
36result.OrderBy(r => r.StatusCode),
101result.OrderBy(r => r.StatusCode),
159result.OrderBy(r => r.StatusCode),
210result.OrderBy(r => r.StatusCode),
249result.OrderBy(r => r.StatusCode),
305result.OrderBy(r => r.StatusCode),
348result.OrderBy(r => r.StatusCode),
400result.OrderBy(r => r.StatusCode),
443result.OrderBy(r => r.StatusCode),
494result.OrderBy(r => r.StatusCode),
540result.OrderBy(r => r.StatusCode),
586result.OrderBy(r => r.StatusCode),
636result.OrderBy(r => r.StatusCode),
666result.OrderBy(r => r.StatusCode),
692result.OrderBy(r => r.StatusCode),
725result.OrderBy(r => r.StatusCode),
780.OrderBy(format => format.MediaType)
Microsoft.AspNetCore.Mvc.Core (6)
Microsoft.AspNetCore.Mvc.Core.Test (79)
Builder\MvcAreaRouteBuilderExtensionsTest.cs (14)
29route.Constraints.OrderBy(kvp => kvp.Key),
37route.Defaults.OrderBy(kvp => kvp.Key),
64route.Constraints.OrderBy(kvp => kvp.Key),
72route.Defaults.OrderBy(kvp => kvp.Key),
105route.Constraints.OrderBy(kvp => kvp.Key),
118route.Defaults.OrderBy(kvp => kvp.Key),
152route.Constraints.OrderBy(kvp => kvp.Key),
164route.DataTokens.OrderBy(kvp => kvp.Key),
171route.Defaults.OrderBy(kvp => kvp.Key),
205route.Constraints.OrderBy(kvp => kvp.Key),
212route.DataTokens.OrderBy(kvp => kvp.Key),
219route.Defaults.OrderBy(kvp => kvp.Key),
243route.Constraints.OrderBy(kvp => kvp.Key),
261route.Defaults.OrderBy(kvp => kvp.Key),
Routing\ControllerActionEndpointDataSourceTest.cs (11)
91endpoints.OfType<RouteEndpoint>().Where(e => !SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
104endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
173endpoints.OfType<RouteEndpoint>().Where(e => !SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
188endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
260endpoints.OfType<RouteEndpoint>().Where(e => !SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
273endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
342endpoints.OfType<RouteEndpoint>().Where(e => !SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
357endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
436endpoints.OfType<RouteEndpoint>().Where(e => !SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
453endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
526endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (4)
Microsoft.AspNetCore.Mvc.FunctionalTests (28)
ApiExplorerTest.cs (19)
629responseType.ResponseFormats.Select(responseFormat => responseFormat.MediaType).OrderBy(o => o).ToArray());
635responseType.ResponseFormats.Select(responseFormat => responseFormat.MediaType).OrderBy(o => o).ToArray());
693responseType.ResponseFormats.Select(responseFormat => responseFormat.MediaType).OrderBy(o => o).ToArray());
699responseType.ResponseFormats.Select(responseFormat => responseFormat.MediaType).OrderBy(o => o).ToArray());
751description.SupportedResponseTypes.OrderBy(responseType => responseType.StatusCode),
788description.SupportedResponseTypes.OrderBy(responseType => responseType.StatusCode),
823description.SupportedResponseTypes.OrderBy(responseType => responseType.StatusCode),
1246description.SupportedResponseTypes.OrderBy(r => r.StatusCode),
1275description.SupportedResponseTypes.OrderBy(r => r.StatusCode),
1309description.SupportedResponseTypes.OrderBy(r => r.StatusCode),
1314var actualMediaTypes = responseType.ResponseFormats.Select(r => r.MediaType).OrderBy(r => r);
1335description.SupportedResponseTypes.OrderBy(r => r.StatusCode),
1366description.SupportedResponseTypes.OrderBy(r => r.StatusCode),
1401description.SupportedResponseTypes.OrderBy(r => r.StatusCode),
1436description.SupportedResponseTypes.OrderBy(r => r.StatusCode),
1476description.SupportedResponseTypes.OrderBy(r => r.StatusCode),
1517description.SupportedResponseTypes.OrderBy(r => r.StatusCode),
1546description.SupportedResponseTypes.OrderBy(r => r.StatusCode),
1571.OrderBy(format => format.MediaType)
Microsoft.AspNetCore.Mvc.IntegrationTests (23)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (10)
Microsoft.AspNetCore.Mvc.Razor (1)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (4)
Microsoft.AspNetCore.Mvc.RazorPages (2)
Microsoft.AspNetCore.Mvc.RazorPages.Test (32)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (11)
148propertiesOnPage.OrderBy(p => p.PropertyName),
201context.PageApplicationModel.HandlerProperties.OrderBy(p => p.PropertyName),
244context.PageApplicationModel.HandlerProperties.OrderBy(p => p.PropertyName).Where(p => p.BindingInfo != null),
298context.PageApplicationModel.HandlerMethods.OrderBy(p => p.Name),
341context.PageApplicationModel.HandlerProperties.OrderBy(p => p.PropertyName),
383context.PageApplicationModel.HandlerProperties.OrderBy(p => p.PropertyName),
430context.PageApplicationModel.HandlerMethods.OrderBy(p => p.Name),
632propertiesOnPage.OrderBy(p => p.PropertyName),
682handlerMethods.OrderBy(h => h.MethodInfo.DeclaringType.Name).ThenBy(h => h.MethodInfo.Name),
872handlerMethods.OrderBy(h => h.MethodInfo.Name),
983properties.OrderBy(p => p.PropertyName),
Microsoft.AspNetCore.Mvc.TagHelpers.Test (3)
Microsoft.AspNetCore.Mvc.Testing (1)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Microsoft.AspNetCore.OpenApi (1)
Microsoft.AspNetCore.OpenApi.Tests (28)
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Paths.cs (10)
23Assert.Collection(document.Paths.OrderBy(p => p.Key),
27Assert.Collection(path.Value.Operations.OrderBy(o => o.Key),
36Assert.Collection(path.Value.Operations.OrderBy(o => o.Key),
61Assert.Collection(document.Paths.OrderBy(p => p.Key),
83Assert.Collection(document.Paths.OrderBy(p => p.Key),
87Assert.Collection(path.Value.Operations.OrderBy(o => o.Key),
115Assert.Collection(document.Paths.OrderBy(p => p.Key),
119Assert.Collection(path.Value.Operations.OrderBy(o => o.Key),
154Assert.Collection(document.Paths.OrderBy(p => p.Key),
158Assert.Collection(path.Value.Operations.OrderBy(o => o.Key),
Transformers\OperationTransformerTests.cs (10)
30Assert.Collection(document.Paths.OrderBy(p => p.Key),
94Assert.Collection(document.Paths.OrderBy(p => p.Key),
162Assert.Collection(document.Paths.OrderBy(p => p.Key),
195Assert.Collection(document.Paths.OrderBy(p => p.Key),
224Assert.Collection(document.Paths.OrderBy(p => p.Key),
253Assert.Collection(document.Paths.OrderBy(p => p.Key),
286Assert.Collection(document.Paths.OrderBy(p => p.Key),
303Assert.Collection(document.Paths.OrderBy(p => p.Key),
353Assert.Collection(document.Paths.OrderBy(p => p.Key),
384Assert.Collection(document.Paths.OrderBy(p => p.Key),
Microsoft.AspNetCore.Owin.Tests (1)
Microsoft.AspNetCore.Rewrite.Tests (2)
Microsoft.AspNetCore.Routing (4)
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
Microsoft.AspNetCore.Routing.Tests (49)
Patterns\DefaultRoutePatternTransformerTest.cs (12)
38actual.RequiredValues.OrderBy(kvp => kvp.Key),
79actual.Defaults.OrderBy(kvp => kvp.Key),
84actual.RequiredValues.OrderBy(kvp => kvp.Key),
143actual.RequiredValues.OrderBy(kvp => kvp.Key),
165actual.RequiredValues.OrderBy(kvp => kvp.Key),
192actual.RequiredValues.OrderBy(kvp => kvp.Key),
227actual.RequiredValues.OrderBy(kvp => kvp.Key),
268actual.RequiredValues.OrderBy(kvp => kvp.Key),
309actual.RequiredValues.OrderBy(kvp => kvp.Key),
331actual.RequiredValues.OrderBy(kvp => kvp.Key),
353actual.RequiredValues.OrderBy(kvp => kvp.Key),
375actual.RequiredValues.OrderBy(kvp => kvp.Key),
Patterns\RoutePatternFactoryTest.cs (11)
35actual.Defaults.OrderBy(kvp => kvp.Key),
60actual.Defaults.OrderBy(kvp => kvp.Key),
163actual.ParameterPolicies.OrderBy(kvp => kvp.Key),
200actual.ParameterPolicies.OrderBy(kvp => kvp.Key),
236actual.ParameterPolicies.OrderBy(kvp => kvp.Key),
267actual.ParameterPolicies.OrderBy(kvp => kvp.Key),
334actual.ParameterPolicies.OrderBy(kvp => kvp.Key),
370actual.ParameterPolicies.OrderBy(kvp => kvp.Key),
552action.RequiredValues.OrderBy(kvp => kvp.Key),
572action.RequiredValues.OrderBy(kvp => kvp.Key),
592action.RequiredValues.OrderBy(kvp => kvp.Key),
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (19)
src\Servers\Kestrel\shared\KnownHeaders.cs (19)
177.OrderBy(header => !requestPrimaryHeaders.Contains(header))
248.OrderBy(header => !responsePrimaryHeaders.Contains(header))
275.OrderBy(header => !responsePrimaryHeaders.Contains(header))
791HeadersByLength = requestHeaders.OrderBy(x => x.Name.Length).GroupBy(x => x.Name.Length),
798HeadersByLength = responseHeaders.OrderBy(x => x.Name.Length).GroupBy(x => x.Name.Length),
805HeadersByLength = responseTrailers.OrderBy(x => x.Name.Length).GroupBy(x => x.Name.Length),
974{{{Each(byLength.OrderBy(h => !h.PrimaryHeader), header => $@"
990{Each(byLength.OrderBy(h => !h.PrimaryHeader), header => $@"
1019{{{Each(byLength.OrderBy(h => !h.PrimaryHeader), header => $@"
1028{Each(byLength.OrderBy(h => !h.PrimaryHeader), header => $@"
1050{{{Each(byLength.OrderBy(h => !h.PrimaryHeader), header => $@"
1068{Each(byLength.OrderBy(h => !h.PrimaryHeader), header => $@"
1098{{{Each(byLength.OrderBy(h => !h.PrimaryHeader), header => $@"
1116{Each(byLength.OrderBy(h => !h.PrimaryHeader), header => $@"
1152{Each(loop.Headers.Where(header => header.Identifier != "ContentLength").OrderBy(h => !h.PrimaryHeader), header => $@"
1168{Each(loop.Headers.Where(header => header.Identifier != "ContentLength").OrderBy(h => !h.PrimaryHeader), header => $@"
1240{{{Each(loop.Headers.OrderBy(h => h.Index).Where(h => h.Identifier != "ContentLength"), header => $@"
1324{AppendSwitch(loop.Headers.GroupBy(x => x.Name.Length).OrderBy(x => x.Key))}
1466{AppendQPackSwitch(h.QPackStaticTableFields.OrderBy(t => t.Index).ToList())}
Microsoft.AspNetCore.Shared.Tests (6)
Microsoft.Build (8)
Microsoft.Build.Engine.OM.UnitTests (1)
Microsoft.Build.Engine.UnitTests (8)
Microsoft.Build.Tasks.Core (1)
Microsoft.Build.Utilities.Core (1)
Microsoft.Build.Utilities.UnitTests (2)
Microsoft.Cci.Extensions (1)
Microsoft.CodeAnalysis (15)
Microsoft.CodeAnalysis.CodeStyle (6)
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp (4)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (15)
Interactive\BraceMatching\InteractiveBraceHighlightingTests.cs (4)
171AssertEx.Equal(Enumerable(new Span(62, 1), new Span(71, 1)), result.Select(ts => ts.Span.Span).OrderBy(s => s.Start));
183AssertEx.Equal(Enumerable(new Span(62, 1), new Span(71, 1)), result.Select(ts => ts.Span.Span).OrderBy(s => s.Start));
187AssertEx.Equal(Enumerable(new Span(82, 1), new Span(138, 1)), result.Select(ts => ts.Span.Span).OrderBy(s => s.Start));
199AssertEx.Equal(Enumerable(new Span(82, 1), new Span(138, 1)), result.Select(ts => ts.Span.Span).OrderBy(s => s.Start));
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Features (5)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (7)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (7)
Microsoft.CodeAnalysis.Features (12)
Microsoft.CodeAnalysis.Features.Test.Utilities (4)
Microsoft.CodeAnalysis.Features.UnitTests (2)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Microsoft.CodeAnalysis.Test.Utilities (12)
Microsoft.CodeAnalysis.UnitTests (10)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (4)
Microsoft.CodeAnalysis.Workspaces (12)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (10)
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.DotNet.Build.Tasks.Packaging (7)
Microsoft.DotNet.Build.Tasks.Workloads (2)
Microsoft.DotNet.GenFacades (2)
Microsoft.DotNet.Internal.DependencyInjection.Testing (1)
Microsoft.DotNet.NuGetRepack.Tasks (1)
Microsoft.DotNet.PackageTesting (1)
Microsoft.DotNet.SharedFramework.Sdk (1)
Microsoft.DotNet.SignTool (2)
Microsoft.DotNet.SourceBuild.Tasks (6)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (5)
Microsoft.DotNet.VersionTools (5)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (9)
Microsoft.Extensions.Options.SourceGeneration (3)
Microsoft.Gen.ComplianceReports (5)
Microsoft.Gen.ContextualOptions (2)
Microsoft.Gen.Logging (1)
Microsoft.Gen.Metrics (4)
Microsoft.Interop.ComInterfaceGenerator (1)
Microsoft.Interop.LibraryImportGenerator (2)
Microsoft.ML.AutoML (8)
Microsoft.ML.Core (4)
Microsoft.ML.Core.Tests (4)
Microsoft.ML.Data (15)
Microsoft.ML.Ensemble (2)
Microsoft.ML.EntryPoints (3)
Microsoft.ML.FastTree (3)
Microsoft.ML.SearchSpace (8)
Microsoft.ML.TestFramework (2)
Microsoft.ML.Tests (2)
Microsoft.ML.TimeSeries (1)
Microsoft.ML.Transforms (2)
Microsoft.VisualBasic.Tests (1)
Microsoft.VisualStudio.LanguageServices (1)
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
RunTests (1)
SemanticSearch.BuildTask (3)
Swaggatherer (1)
System.ComponentModel.Annotations (2)
System.Composition.Hosting (1)
System.Data.Common (1)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions.Generator (3)
System.Windows.Forms.Design.Tests (2)
System.Windows.Forms.PrivateSourceGenerators (1)
System.Windows.Forms.Tests (6)
Templates.Blazor.Tests (2)
Templates.Blazor.WebAssembly.Auth.Tests (3)
Templates.Blazor.WebAssembly.Tests (3)
Templates.Mvc.Tests (3)
Templates.Tests (3)
VBCSCompiler.UnitTests (2)
Wasm.Performance.ConsoleHost (1)
xunit.assert (1)
xunit.console (2)