109 references to OrderBy
AnalyzerRunner (2)
DiagnosticAnalyzerRunner.cs (2)
430foreach (var pair in telemetryInfoDictionary.OrderBy(x => x.Key.GetType().Name, StringComparer.OrdinalIgnoreCase)) 437foreach (var pair in telemetryInfoDictionary.OrderBy(x => x.Key.GetType().Name, StringComparer.OrdinalIgnoreCase))
Aspire.Dashboard.Tests (1)
Model\ResourceViewModelNameComparerTests.cs (1)
25var result = resources.OrderBy(v => v, ResourceViewModelNameComparer.Instance);
Aspire.Hosting.Tests (2)
Utils\StringComparersTests.cs (2)
17var comparers = typeof(StringComparers).GetProperties(flags).OrderBy(c => c.Name, StringComparer.Ordinal).ToList(); 18var comparisons = typeof(StringComparisons).GetProperties(flags).OrderBy(c => c.Name, StringComparer.Ordinal).ToList();
AzureAppServicesHostingStartupSample (1)
Startup.cs (1)
48foreach (var key in vars.Keys.Cast<string>().OrderBy(key => key, StringComparer.OrdinalIgnoreCase))
AzureAppServicesSample (1)
Startup.cs (1)
59foreach (var key in vars.Keys.Cast<string>().OrderBy(key => key, StringComparer.OrdinalIgnoreCase))
BuildBoss (1)
CompilerNuGetCheckerUtil.cs (1)
409.OrderBy(x => x, PathComparer);
BuildValidator (1)
Program.cs (1)
224return map.Values.OrderBy(x => x.FileName, FileNameEqualityComparer.StringComparer).ToArray();
CodeGenerator (3)
src\Servers\Kestrel\shared\KnownHeaders.cs (3)
321case {byLength.Key}:{AppendSwitchSection(byLength.Key, byLength.OrderBy(h => h, KnownHeaderComparer.Instance).ToList())} 447.OrderBy(g => g.First(), KnownHeaderComparer.Instance) 784.Select(h => h.Identifier).Distinct().OrderBy(n => n, StringComparer.InvariantCulture).ToArray();
ConfigurationSchemaGenerator (1)
ConfigSchemaEmitter.cs (1)
737obj.OrderBy(p => p.Key, StringComparer.Ordinal) :
DefaultBuilder.SampleApp (1)
Startup.cs (1)
39foreach (var key in vars.Keys.Cast<string>().OrderBy(key => key, StringComparer.OrdinalIgnoreCase))
IISSample (1)
Startup.cs (1)
75foreach (var key in vars.Keys.Cast<string>().OrderBy(key => key, StringComparer.OrdinalIgnoreCase))
Microsoft.AspNetCore.App.Analyzers.Test (1)
RouteEmbeddedLanguage\Infrastructure\MarkupTestFile.cs (1)
88var orderedMatches = matches.OrderBy(t => t, Comparer<(int matchIndex, string name)>.Create((t1, t2) => t1.matchIndex - t2.matchIndex)).ToList();
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (3)
ConverterTests\JsonElementComparer.cs (3)
77var xProperties = xPropertiesUnsorted.OrderBy(p => p.Name, StringComparer.Ordinal); 78var yProperties = yPropertiesUnsorted.OrderBy(p => p.Name, StringComparer.Ordinal); 142foreach (var property in obj.EnumerateObject().OrderBy(p => p.Name, StringComparer.Ordinal))
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
RequestDelegateGeneratorSources.cs (1)
633foreach (string verb in verbs.OrderBy(p => p, StringComparer.Ordinal))
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\CompositeBindingSource.cs (1)
56var id = string.Join('&', bindingSources.Select(s => s.Id).OrderBy(s => s, StringComparer.Ordinal));
Microsoft.AspNetCore.Mvc.Core (7)
ApplicationModels\ApplicationModelFactory.cs (1)
308formattedVerbs = string.Join(", ", verbs.OrderBy(v => v, StringComparer.OrdinalIgnoreCase));
ApplicationModels\AttributeRouteModel.cs (1)
415string.Join(", ", values.Keys.OrderBy(k => k, StringComparer.OrdinalIgnoreCase)));
ApplicationModels\ControllerActionDescriptorBuilder.cs (1)
177.OrderBy(d => d, FilterDescriptorOrderComparer.Comparer)
ApplicationParts\ApplicationPartManager.cs (2)
83.OrderBy(assembly => assembly.FullName, StringComparer.Ordinal) 97.OrderBy(assembly => assembly.FullName, StringComparer.Ordinal);
Filters\FilterFactory.cs (1)
22.OrderBy(
Routing\ActionEndpointFactory.cs (1)
403foreach (var filter in action.FilterDescriptors.OrderBy(f => f, FilterDescriptorOrderComparer.Comparer).Select(f => f.Filter))
Microsoft.AspNetCore.Mvc.Core.Test (7)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (2)
1417.OrderBy(l => l, StringComparer.Ordinal) 1423.OrderBy(l => l, StringComparer.Ordinal)
ModelBinding\PrefixContainerTest.cs (3)
210Assert.Collection(result.OrderBy(k => k.Key, StringComparer.OrdinalIgnoreCase), 253Assert.Collection(result.OrderBy(k => k.Key, StringComparer.OrdinalIgnoreCase), 287Assert.Collection(result.OrderBy(k => k.Key, StringComparer.OrdinalIgnoreCase),
ResponseCacheAttributeTest.cs (2)
358expected.Split(',').Select(p => p.Trim()).OrderBy(item => item, StringComparer.Ordinal), 359actual.Split(',').Select(p => p.Trim()).OrderBy(item => item, StringComparer.Ordinal));
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
TryValidateModelIntegrationTest.cs (2)
196expected.Split('.').OrderBy(item => item, StringComparer.Ordinal), 197actual.Split('.').OrderBy(item => item, StringComparer.Ordinal));
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
Rendering\HtmlHelperSelectTest.cs (2)
1503expected.OrderBy(item => item.Text, StringComparer.Ordinal), 1504result.OrderBy(item => item.Text, StringComparer.Ordinal));
ViewComponents\DefaultViewComponentSelectorTest.cs (1)
246: base(GetApplicationPartManager(allowedTypes.OrderBy(type => type.Name, StringComparer.Ordinal)))
Microsoft.AspNetCore.Routing (1)
Matching\HttpMethodMatcherPolicy.cs (1)
152httpContext.SetEndpoint(CreateRejectionEndpoint(methods?.OrderBy(m => m, StringComparer.OrdinalIgnoreCase)));
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
src\Servers\Kestrel\shared\KnownHeaders.cs (3)
321case {byLength.Key}:{AppendSwitchSection(byLength.Key, byLength.OrderBy(h => h, KnownHeaderComparer.Instance).ToList())} 447.OrderBy(g => g.First(), KnownHeaderComparer.Instance) 784.Select(h => h.Identifier).Distinct().OrderBy(n => n, StringComparer.InvariantCulture).ToArray();
Microsoft.AspNetCore.Shared.Tests (2)
PropertyHelperTest.cs (2)
296helpers.OrderBy(helper => helper.Name, StringComparer.Ordinal), 312helpers.OrderBy(helper => helper.Name, StringComparer.Ordinal),
Microsoft.Build.Engine.UnitTests (2)
BackEnd\LoggingServicesLogMethod_Tests.cs (2)
1300Assert.Equal(expectedEventArgs.Properties.OrderBy(kvp => kvp.Key, StringComparer.Ordinal), actualEventArgs.Properties.OrderBy(kvp => kvp.Key, StringComparer.OrdinalIgnoreCase));
Microsoft.Cci.Extensions (15)
Extensions\TypeExtensions.cs (2)
510return assemblies.OrderBy(a => a.Name.Value, StringComparer.OrdinalIgnoreCase) 517return assemblies.OrderBy(a => a.Name.Value, StringComparer.OrdinalIgnoreCase)
Traversers\MappingsTypeMemberTraverser.cs (4)
45assemblies = assemblies.OrderBy(GetAssemblyKey, StringComparer.OrdinalIgnoreCase); 64namespaces = namespaces.OrderBy(GetNamespaceKey, StringComparer.OrdinalIgnoreCase); 83types = types.OrderBy(t => t.Representative, new TypeDefinitionComparer()); 102members = members.OrderBy(GetMemberKey, StringComparer.OrdinalIgnoreCase);
Traversers\SimpleTypeMemberTraverser.cs (3)
40namespaces = namespaces.OrderBy(GetNamespaceKey, StringComparer.OrdinalIgnoreCase); 59types = types.OrderBy(GetTypeKey, StringComparer.OrdinalIgnoreCase); 99members = members.OrderBy(GetMemberKey, StringComparer.OrdinalIgnoreCase);
Writers\CSharp\CSDeclarationWriter.Attributes.cs (2)
23securityAttributes = securityAttributes.OrderBy(s => s.Action.ToString(), StringComparer.OrdinalIgnoreCase); 113attributes = attributes.OrderBy(a => a, new AttributeComparer(_filter, _forCompilation));
Writers\CSharp\CSDeclarationWriter.Enums.cs (1)
47IEnumerable<IFieldDefinition> sortedFields = resolvedType.Fields.OrderBy(f => f.Name.Value, StringComparer.OrdinalIgnoreCase);
Writers\CSharp\CSDeclarationWriter.Types.cs (1)
97IEnumerable<ITypeReference> interfaces = type.Interfaces.Where(IncludeBaseType).OrderBy(t => GetTypeName(t), StringComparer.OrdinalIgnoreCase);
Writers\CSharp\CSharpWriter.cs (1)
224includedVisibleFields = includedVisibleFields.OrderBy(GetMemberKey, StringComparer.OrdinalIgnoreCase);
Writers\DocumentIdWriter.cs (1)
30assemblies = assemblies.OrderBy(a => a.Name.Value, StringComparer.OrdinalIgnoreCase);
Microsoft.CodeAnalysis (3)
CommandLine\SarifErrorLogger.cs (1)
106foreach (var pair in diagnostic.Properties.OrderBy(x => x.Key, StringComparer.Ordinal))
Emit\CommonPEModuleBuilder.cs (1)
814return NestedTypes?.OrderBy(t => t.Name, StringComparer.Ordinal);
InternalUtilities\EnumerableExtensions.cs (1)
593return source.OrderBy(Functions<T>.Identity, comparer);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
593return source.OrderBy(Functions<T>.Identity, comparer);
Microsoft.CodeAnalysis.CSharp (2)
FlowAnalysis\CSharpDataFlowAnalysis.cs (2)
392return ImmutableArray.CreateRange(data.Where(s => s.CanBeReferencedByName).OrderBy(s => s, LexicalOrderSymbolComparer.Instance).GetPublicSymbols()); 397return ImmutableArray.CreateRange(data.Where(s => s.CanBeReferencedByName).OrderBy(s => s, LexicalOrderSymbolComparer.Instance).Select(p => p.GetPublicSymbol()));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelGetSemanticInfoTests.cs (2)
15121var sortedCandidates = semanticInfo.CandidateSymbols.AsEnumerable().OrderBy(s => s.ToDisplayString(), StringComparer.Ordinal).ToArray(); 15128var sortedMethodGroup = semanticInfo.MethodGroup.AsEnumerable().OrderBy(s => s.ToDisplayString(), StringComparer.Ordinal).ToArray();
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\DiagnosticDescription.cs (1)
584return diagnostics.OrderBy(d => d.Location.GetMappedLineSpan().StartLinePosition, LinePositionComparer.Instance);
Microsoft.CodeAnalysis.Workspaces (2)
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (1)
94var textChecksumsTasks = projectState.DocumentStates.States.Values.OrderBy(state => state.FilePath, StringComparer.Ordinal).Select(async state =>
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
593return source.OrderBy(Functions<T>.Identity, comparer);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
593return source.OrderBy(Functions<T>.Identity, comparer);
Microsoft.DotNet.AsmDiff (2)
DiffCSharpWriter.cs (2)
446var ag1Tokens = ag1.Attributes.OrderBy(c => c, attributeComparer) 448var ag2Tokens = ag2.Attributes.OrderBy(c => c, attributeComparer)
Microsoft.DotNet.Build.Tasks.Packaging (2)
GenerateNuSpec.cs (2)
266return manifestFiles.OrderBy(f => f.Target, StringComparer.OrdinalIgnoreCase).ToList(); 326))).OrderBy(s => s?.TargetFramework?.GetShortFolderName(), StringComparer.Ordinal)
Microsoft.DotNet.SharedFramework.Sdk (1)
src\CreateFrameworkListFile.cs (1)
101.OrderBy(f => f.TargetPath, StringComparer.Ordinal)
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\XmlParsingHelpers.cs (1)
34return source.OrderBy(selector, StringComparer.Ordinal);
Microsoft.DotNet.VersionTools (7)
BuildManifest\Model\ArtifactSet.cs (2)
25.OrderBy(p => p.Id, StringComparer.OrdinalIgnoreCase) 29.OrderBy(b => b.Id, StringComparer.OrdinalIgnoreCase)
BuildManifest\Model\SigningInformationModel.cs (5)
40.OrderBy(fe => fe.Include, StringComparer.OrdinalIgnoreCase) 45.OrderBy(f => f.Include, StringComparer.OrdinalIgnoreCase) 50.OrderBy(f => f.Include, StringComparer.OrdinalIgnoreCase) 54.OrderBy(i => i.Include, StringComparer.OrdinalIgnoreCase) 58.OrderBy(s => s.Include, StringComparer.OrdinalIgnoreCase)
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
EmbeddedFileProviderTests.cs (1)
212Assert.Collection(files.OrderBy(f => f.Name, StringComparer.Ordinal),
Microsoft.Extensions.FileProviders.Physical (1)
PollingWildCardChangeToken.cs (1)
117IOrderedEnumerable<FilePatternMatch> files = result.Files.OrderBy(f => f.Path, StringComparer.Ordinal);
Microsoft.Extensions.Options.SourceGeneration (1)
Emitter.cs (1)
620var attributesData = _optionsSourceGenContext.AttributesToGenerate.OrderBy(static kvp => kvp.Key, StringComparer.Ordinal).ToArray();
Microsoft.ML.GenAI.Core (2)
Extension\ModuleExtension.cs (2)
257foreach (var (key, value) in stateDict.OrderBy(x => x.Key, StringComparer.OrdinalIgnoreCase)) 275foreach (var (key, value) in stateDict.OrderBy(x => x.Key, StringComparer.OrdinalIgnoreCase))
NativeIISSample (1)
Startup.cs (1)
73foreach (var key in vars.Keys.Cast<string>().OrderBy(key => key, StringComparer.OrdinalIgnoreCase))
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (1)
97foreach(string assemblyName in _assemblyPathTable.Keys.OfType<string>().OrderBy(s => s, StringComparer.Ordinal))
RoutingSandbox (1)
UseEndpointRoutingStartup.cs (1)
39foreach (var endpoint in dataSource.Endpoints.OfType<RouteEndpoint>().OrderBy(e => e.RoutePattern.RawText, StringComparer.OrdinalIgnoreCase))
RoutingWebSite (1)
UseEndpointRoutingStartup.cs (1)
45foreach (var endpoint in dataSource.Endpoints.OfType<RouteEndpoint>().OrderBy(e => e.RoutePattern.RawText, StringComparer.OrdinalIgnoreCase))
System.ComponentModel.TypeConverter (1)
System\Drawing\ColorConverter.cs (1)
21return new StandardValuesCollection(set.OrderBy(c => c, new ColorComparer()).ToList());
System.Data.Common (1)
System\Data\EnumerableRowCollectionExtensions.cs (1)
44IEnumerable<TRow> ie = Enumerable.OrderBy(source, keySelector, comparer);
System.Linq (1)
System\Linq\OrderBy.cs (1)
48OrderBy(source, EnumerableSorter<T>.IdentityFunc, comparer);
System.Linq.Parallel (1)
System\Linq\Parallel\QueryOperators\Unary\SortQueryOperator.cs (1)
105return wrappedChild.OrderBy(_keySelector, _comparer);
System.Text.RegularExpressions.Generator (2)
RegexGenerator.cs (1)
266foreach (KeyValuePair<string, string[]> helper in requiredHelpers.OrderBy(h => h.Key, StringComparer.Ordinal))
RegexGenerator.Emitter.cs (1)
162AppendHashtableContents(writer, rm.Tree.CaptureNameToNumberMapping.Cast<DictionaryEntry>().OrderBy(de => de.Key as string, StringComparer.Ordinal));
xunit.console (6)
common\AssemblyResolution\DependencyContextAssemblyCache.cs (6)
76internalDiagnosticsMessageSink.OnMessage(new _DiagnosticMessage($"[DependencyContextAssemblyCache..ctor] Managed assembly map: [{string.Join(",", managedAssemblyMap.Keys.Select(k => $"'{k}'").OrderBy(k => k, StringComparer.OrdinalIgnoreCase))}]")); 90internalDiagnosticsMessageSink.OnMessage(new _DiagnosticMessage($"[DependencyContextAssemblyCache..ctor] Unmanaged assembly map: [{string.Join(",", unmanagedAssemblyMap.Keys.Select(k => $"'{k}'").OrderBy(k => k, StringComparer.OrdinalIgnoreCase))}]")); 253internalDiagnosticsMessageSink.OnMessage(new _DiagnosticMessage($"[DependencyContextAssemblyCache.ResolveManagedAssembly] Resolving '{assemblyName}', found a resolved path, but could not map a filename in [{string.Join(",", assemblies.OrderBy(k => k, StringComparer.OrdinalIgnoreCase).Select(k => $"'{k}'"))}]")); 259internalDiagnosticsMessageSink.OnMessage(new _DiagnosticMessage($"[DependencyContextAssemblyCache.ResolveManagedAssembly] Resolving '{assemblyName}', found in dependency map, but unable to resolve a path in [{string.Join(",", assetGroup.AssetPaths.OrderBy(k => k, StringComparer.OrdinalIgnoreCase).Select(k => $"'{k}'"))}]")); 286internalDiagnosticsMessageSink.OnMessage(new _DiagnosticMessage($"[DependencyContextAssemblyCache.ResolveUnmanagedLibrary] Found a resolved path, but could not map a filename in [{string.Join(",", assemblies.OrderBy(k => k, StringComparer.OrdinalIgnoreCase).Select(k => $"'{k}'"))}]")); 291internalDiagnosticsMessageSink.OnMessage(new _DiagnosticMessage($"[DependencyContextAssemblyCache.ResolveUnmanagedLibrary] Found in dependency map, but unable to resolve a path in [{string.Join(",", assetGroup.AssetPaths.OrderBy(k => k, StringComparer.OrdinalIgnoreCase).Select(k => $"'{k}'"))}]"));