2 implementations of IOrderedEnumerable
System.Linq (1)
System\Linq\OrderedEnumerable.cs (1)
12private abstract partial class OrderedIterator<TElement> : Iterator<TElement>, IOrderedEnumerable<TElement>
System.Linq.Parallel (1)
System\Linq\Parallel\QueryOperators\Unary\SortQueryOperator.cs (1)
23UnaryQueryOperator<TInputOutput, TInputOutput>, IOrderedEnumerable<TInputOutput>
166 references to IOrderedEnumerable
AnalyzerRunner (1)
DiagnosticAnalyzerRunner.cs (1)
202var orderedDiagnostics =
Aspire.Dashboard.Tests (1)
Model\ResourceViewModelNameComparerTests.cs (1)
25var result = resources.OrderBy(v => v, ResourceViewModelNameComparer.Instance);
BuildBoss (1)
CompilerNuGetCheckerUtil.cs (1)
407var neededDllNames = neededDllNameSet
dotnet-svcutil-lib (4)
Metadata\MetadataDocumentLoader.cs (1)
723var orderedFileNames = this.metadataSourceFiles.Select(u => u.ToString().ToUpperInvariant()).OrderBy(u => u);
Shared\MSBuildProj.cs (1)
1021var depsFiles = Directory.GetFiles(binFolder, "*", SearchOption.AllDirectories)
Shared\Options\OptionsSerializer.cs (2)
166var otherOptions = options.GetOptions().Where(o => 212var printOptions = options.GetOptions().Where(o =>
illink (1)
Microsoft.AspNetCore.DataProtection (3)
Repositories\EphemeralXmlRepository.cs (1)
76var elementsToDelete = deletableElements
Repositories\FileSystemXmlRepository.cs (1)
195var elementsToDelete = deletableElements
Repositories\RegistryXmlRepository.cs (1)
177var elementsToDelete = deletableElements
Microsoft.AspNetCore.DataProtection.Tests (2)
Repositories\FileSystemXmlRepositoryTests.cs (1)
136var orderedNames = allElements.Select(el => el.Name.LocalName).OrderBy(name => name);
Repositories\RegistryXmlRepositoryTests.cs (1)
123var orderedNames = allElements.Select(el => el.Name.LocalName).OrderBy(name => name);
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (2)
ConverterTests\JsonElementComparer.cs (2)
77var xProperties = xPropertiesUnsorted.OrderBy(p => p.Name, StringComparer.Ordinal); 78var yProperties = yPropertiesUnsorted.OrderBy(p => p.Name, StringComparer.Ordinal);
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationParts\ApplicationPartManager.cs (1)
96var relatedAssemblies = RelatedAssemblyAttribute.GetRelatedAssemblies(assembly, throwOnError: false)
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DataAnnotationsMetadataProvider.cs (1)
184var enumFields = Enum.GetNames(underlyingType)
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
ApiExplorerTest.cs (1)
1314var actualMediaTypes = responseType.ResponseFormats.Select(r => r.MediaType).OrderBy(r => r);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
CompilerFailedExceptionFactoryTest.cs (1)
35var orderedMessages = failure.Messages.OrderByDescending(messages => messages.Message);
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
src\Http\Routing\test\UnitTests\Matching\RouteMatcherBuilder.cs (1)
34var groups = _endpoints
src\Http\Routing\test\UnitTests\Matching\TreeRouterMatcherBuilder.cs (1)
41var groups = _endpoints
Microsoft.AspNetCore.Routing.Tests (2)
Matching\RouteMatcherBuilder.cs (1)
34var groups = _endpoints
Matching\TreeRouterMatcherBuilder.cs (1)
41var groups = _endpoints
Microsoft.Build (2)
Evaluation\Profiler\ProfilerResultPrettyPrinter.cs (2)
49var evaluationPasses = profiledLocations.Where(l => l.Key.IsEvaluationPass) 52var orderedLocations = profiledLocations.Where(l => !l.Key.IsEvaluationPass)
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
1855var pathsSortedByDepth = paths.OrderByDescending(x => Path.GetDirectoryName(Path.GetFullPath(x)).Length);
Microsoft.Cci.Extensions (2)
Traversers\SimpleTypeMemberTraverser.cs (2)
88if (members is IOrderedEnumerable<ITypeDefinitionMember> orderedTypeDefinitionMembers) 92else if (members is IOrderedEnumerable<IFieldDefinition> orderedFieldDefinitionMembers)
Microsoft.CodeAnalysis (14)
CodeGen\PrivateImplementationDetails.cs (1)
337internal IOrderedEnumerable<KeyValuePair<int, InstrumentationPayloadRootField>> GetInstrumentationPayloadRoots()
CommandLine\ReportAnalyzerUtil.cs (2)
81var analyzersByAssembly = analyzerDriver.AnalyzerExecutionTimes 127var generatorsByAssembly = driverTimingInfo.GeneratorTimes
InternalUtilities\EnumerableExtensions.cs (11)
591public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, IComparer<T>? comparer) 596public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, IComparer<T>? comparer) 601public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 606public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 612public static IOrderedEnumerable<T> Order<T>(IEnumerable<T> source) where T : IComparable<T> 620public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, IComparer<T>? comparer) 625public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare) 630public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source) where T : IComparable<T>
Microsoft.CodeAnalysis.CodeStyle (12)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (11)
591public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, IComparer<T>? comparer) 596public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, IComparer<T>? comparer) 601public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 606public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 614public static IOrderedEnumerable<T> Order<T>(this IEnumerable<T> source) where T : IComparable<T> 620public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, IComparer<T>? comparer) 625public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare) 630public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source) where T : IComparable<T>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
221var orderedTokens = tokens.Distinct().OrderBy(t => t.SpanStart);
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (2)
384IOrderedEnumerable<Diagnostic> diagnostics, 443IOrderedEnumerable<Diagnostic> diagnostics,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider_DocComments.cs (1)
175var orderedKVPs = properties.OrderBy(kvp => constructor.Parameters.FirstOrDefault(p => p.Name == kvp.Value)?.Ordinal);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
TouchedFileLoggingTests.cs (1)
234var expected = expectedReads.Select(s => s.ToUpperInvariant()).OrderBy(s => s);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
SymbolKey\SymbolKeyCompilationsTests.cs (4)
77var originalSymbols = GetSourceSymbols(comp1, SymbolCategory.DeclaredType | SymbolCategory.DeclaredNamespace).OrderBy(s => s.Name); 78var newSymbols = GetSourceSymbols(comp2, SymbolCategory.DeclaredType | SymbolCategory.DeclaredNamespace).OrderBy(s => s.Name); 107var originalSymbols = GetSourceSymbols(comp1, SymbolCategory.DeclaredType | SymbolCategory.DeclaredNamespace).OrderBy(s => s.Name); 108var newSymbols = GetSourceSymbols(comp2, SymbolCategory.DeclaredType | SymbolCategory.DeclaredNamespace).OrderBy(s => s.Name);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider_DocComments.cs (1)
175var orderedKVPs = properties.OrderBy(kvp => constructor.Parameters.FirstOrDefault(p => p.Name == kvp.Value)?.Ordinal);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\LambdaTests.cs (1)
1121var oReference =
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
LexicalAndXml\RawStringLiteralLexingTests.cs (2)
223var expectedDiagnosticSpans = spans.Single().Value.OrderBy(d => d.Start); 224var actualDiagnosticsSpans = diagnostics.Select(d => d.Location.SourceSpan).OrderBy(d => d.Start);
Syntax\SyntaxAnnotationTests.cs (2)
366var annotatedTrivia = newRoot.GetAnnotatedTrivia(annotation).OrderBy(t => t.SpanStart); 367var actualTrivia = GetAllTrivia(oldRoot).OrderBy(t => t.SpanStart);
Microsoft.CodeAnalysis.EditorFeatures (1)
DocumentationComments\AbstractDocumentationCommentCommandHandler.cs (1)
99var snapshots = textView.Selection.GetSnapshotSpansOnBuffer(subjectBuffer).OrderByDescending(s => s.Span.Start);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
ObsoleteSymbol\AbstractObsoleteSymbolTests.cs (1)
40var expectedSpans = workspace.Documents[i].SelectedSpans.OrderBy(s => s.Start);
ReassignedVariable\AbstractReassignedVariableTests.cs (1)
39var expectedSpans = workspace.Documents[i].SelectedSpans.OrderBy(s => s.Start);
Workspaces\EditorTestWorkspace.cs (1)
324var sortedAndNamedSpans = namedSpans.OrderBy(kvp => kvp.Value.Single().Start)
Microsoft.CodeAnalysis.Features (4)
CodeRefactorings\AddMissingImports\AbstractAddMissingImportsFeatureService.cs (1)
135var orderedTextInserts = allTextChanges.Where(change => change.Span.IsEmpty)
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (1)
281var referencedLocations = referencedSymbols
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (2)
384IOrderedEnumerable<Diagnostic> diagnostics, 443IOrderedEnumerable<Diagnostic> diagnostics,
Microsoft.CodeAnalysis.Features.Test.Utilities (2)
RelatedDocuments\AbstractRelatedDocumentsTests.cs (2)
47var actualSortedResults = results.OrderBy(d => d.Id); 48var expectedSortedResults = workspace.Documents.Where(d => d.SelectedSpans.Count > 0).Select(d => d.Id).OrderBy(d => d.Id);
Microsoft.CodeAnalysis.Test.Utilities (3)
Diagnostics\TrackingDiagnosticAnalyzer.cs (2)
161private void AssertSequenceEqual<T>(IEnumerable<T> expected, IEnumerable<T> actual, Func<IEnumerable<T>, IOrderedEnumerable<T>> sorter = null) 163sorter = sorter ?? new Func<IEnumerable<T>, IOrderedEnumerable<T>>(items => items.OrderBy(i => i));
ReflectionAssert.cs (1)
19var fieldsAndProps = fields.Where(f => !f.IsPrivate).Select(f => f.Name).Concat(
Microsoft.CodeAnalysis.Workspaces (15)
CodeFixes\FixAllOccurrences\TextChangeMerger.cs (1)
72var changesToApply = _totalChangesIntervalTree.Distinct().OrderBy(tc => tc.Span.Start);
Rename\ConflictEngine\ConflictResolver.cs (1)
411var orderedLocations = locations
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
104var documentsGroupedByTopologicallySortedProjectId = documentsIdsToBeCheckedForConflict
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (11)
591public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, IComparer<T>? comparer) 596public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, IComparer<T>? comparer) 601public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 606public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 614public static IOrderedEnumerable<T> Order<T>(this IEnumerable<T> source) where T : IComparable<T> 620public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, IComparer<T>? comparer) 625public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare) 630public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source) where T : IComparable<T>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
221var orderedTokens = tokens.Distinct().OrderBy(t => t.SpanStart);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (11)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (11)
591public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, IComparer<T>? comparer) 596public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, IComparer<T>? comparer) 601public static IOrderedEnumerable<T> OrderBy<T>(this IEnumerable<T> source, Comparison<T> compare) 606public static IOrderedEnumerable<T> OrderByDescending<T>(this IEnumerable<T> source, Comparison<T> compare) 614public static IOrderedEnumerable<T> Order<T>(this IEnumerable<T> source) where T : IComparable<T> 620public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, IComparer<T>? comparer) 625public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source, Comparison<T> compare) 630public static IOrderedEnumerable<T> ThenBy<T>(this IOrderedEnumerable<T> source) where T : IComparable<T>
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
CodeStyle\NamingStylePreferencesUpgradeTests.cs (1)
197var duplicates = enumNamesAndValues.GroupBy(e => e.value)
Microsoft.DotNet.Build.Tasks.Packaging (1)
ValidatePackage.cs (1)
566var uapFrameworks = _frameworks.Values.Where(vf => vf.Framework.Framework == FrameworkConstants.FrameworkIdentifiers.UAP).OrderBy(vf => vf.Framework.Version);
Microsoft.DotNet.SourceBuild.Tasks (3)
src\UsageReport\XmlParsingHelpers.cs (3)
30public static IOrderedEnumerable<T> OrderByOrdinal<T>( 37public static IOrderedEnumerable<T> ThenByOrdinal<T>( 38this IOrderedEnumerable<T> source,
Microsoft.Extensions.FileProviders.Physical (1)
PollingWildCardChangeToken.cs (1)
117IOrderedEnumerable<FilePatternMatch> files = result.Files.OrderBy(f => f.Path, StringComparer.Ordinal);
Microsoft.ML.AutoML (2)
Sweepers\SmacSweeper.cs (1)
202IOrderedEnumerable<Tuple<double, ParameterSet>> bestConfigurations = configurations.OrderByDescending(x => x.Item1);
Tuner\SmacTuner.cs (1)
209var orderedConfigurations = configurations.Concat(randomConfigurations).OrderByDescending(p => p.Item1);
Microsoft.ML.Data (1)
DataLoadSave\Binary\BinaryLoader.cs (1)
2164var cols = loader._aliveColumns.Select(t => new KeyValuePair<bool, TableOfContentsEntry>(true, t))
Microsoft.ML.FastTree (1)
FastTree.cs (1)
3152var ordered = gainMap.OrderByDescending(pair => pair.Value);
Microsoft.ML.StandardTrainers (2)
Standard\LinearPredictorUtils.cs (1)
210var orderedWeights = weights.Items()
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
850var orderedWeights = Weights[classNumber].Items().OrderByDescending(kv => Math.Abs(kv.Value));
Microsoft.ML.Sweeper (1)
Algorithms\SmacSweeper.cs (1)
217IOrderedEnumerable<Tuple<double, ParameterSet>> bestConfigurations = configurations.OrderByDescending(x => x.Item1);
Microsoft.ML.TestFramework (2)
DataPipe\TestDataPipeBase.cs (2)
157var promisedCols = promised.OrderBy(x => x.Name); 158var deliveredCols = delivered.OrderBy(x => x.Name);
Microsoft.ML.Tests (1)
Transformers\NormalizerTests.cs (1)
1083var sortedNumbers = numbers.OrderBy(n => n);
netstandard (1)
netstandard.cs (1)
1031[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.IOrderedEnumerable<>))]
System.Core (1)
System.Core.cs (1)
169[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.IOrderedEnumerable<>))]
System.Data.Common (4)
System\Data\EnumerableRowCollectionExtensions.cs (4)
79IEnumerable<TRow> ie = Enumerable.ThenBy((IOrderedEnumerable<TRow>)source.EnumerableRows, keySelector); 91IEnumerable<TRow> ie = Enumerable.ThenBy((IOrderedEnumerable<TRow>)source.EnumerableRows, keySelector, comparer); 103IEnumerable<TRow> ie = Enumerable.ThenByDescending((IOrderedEnumerable<TRow>)source.EnumerableRows, keySelector); 115IEnumerable<TRow> ie = Enumerable.ThenByDescending((IOrderedEnumerable<TRow>)source.EnumerableRows, keySelector, comparer);
System.Linq (23)
System\Linq\OrderBy.cs (21)
16/// <returns>An <see cref="IOrderedEnumerable{TElement}"/> whose elements are sorted.</returns> 26public static IOrderedEnumerable<T> Order<T>(this IEnumerable<T> source) => 35/// <returns>An <see cref="IOrderedEnumerable{TElement}"/> whose elements are sorted.</returns> 45public static IOrderedEnumerable<T> Order<T>(this IEnumerable<T> source, IComparer<T>? comparer) => 50public static IOrderedEnumerable<TSource> OrderBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector) 53public static IOrderedEnumerable<TSource> OrderBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, IComparer<TKey>? comparer) 61/// <returns>An <see cref="IOrderedEnumerable{TElement}"/> whose elements are sorted.</returns> 71public static IOrderedEnumerable<T> OrderDescending<T>(this IEnumerable<T> source) => 80/// <returns>An <see cref="IOrderedEnumerable{TElement}"/> whose elements are sorted.</returns> 90public static IOrderedEnumerable<T> OrderDescending<T>(this IEnumerable<T> source, IComparer<T>? comparer) => 95public static IOrderedEnumerable<TSource> OrderByDescending<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector) => 98public static IOrderedEnumerable<TSource> OrderByDescending<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, IComparer<TKey>? comparer) => 101public static IOrderedEnumerable<TSource> ThenBy<TSource, TKey>(this IOrderedEnumerable<TSource> source, Func<TSource, TKey> keySelector) 111public static IOrderedEnumerable<TSource> ThenBy<TSource, TKey>(this IOrderedEnumerable<TSource> source, Func<TSource, TKey> keySelector, IComparer<TKey>? comparer) 121public static IOrderedEnumerable<TSource> ThenByDescending<TSource, TKey>(this IOrderedEnumerable<TSource> source, Func<TSource, TKey> keySelector) 131public static IOrderedEnumerable<TSource> ThenByDescending<TSource, TKey>(this IOrderedEnumerable<TSource> source, Func<TSource, TKey> keySelector, IComparer<TKey>? comparer) 168IOrderedEnumerable<TElement> CreateOrderedEnumerable<TKey>(Func<TElement, TKey> keySelector, IComparer<TKey>? comparer, bool descending);
System\Linq\OrderedEnumerable.cs (2)
29IOrderedEnumerable<TElement> IOrderedEnumerable<TElement>.CreateOrderedEnumerable<TKey>(Func<TElement, TKey> keySelector, IComparer<TKey>? comparer, bool descending) =>
System.Linq.Parallel (5)
System\Linq\Parallel\Enumerables\OrderedParallelQuery.cs (3)
29Debug.Assert(sortOp is IOrderedEnumerable<TSource>); 37internal IOrderedEnumerable<TSource> OrderedEnumerable 39get { return (IOrderedEnumerable<TSource>)_sortOp; }
System\Linq\Parallel\QueryOperators\Unary\SortQueryOperator.cs (2)
54IOrderedEnumerable<TInputOutput> IOrderedEnumerable<TInputOutput>.CreateOrderedEnumerable<TKey2>(
System.Linq.Queryable (8)
System\Linq\EnumerableRewriter.cs (4)
163if (genericType == typeof(IOrderedEnumerable<>)) 166equiv = typeof(IOrderedEnumerable<>).MakeGenericType(pubType.GenericTypeArguments[0]); 180.Where(i => i.GenType == typeof(IOrderedQueryable<>) || i.GenType == typeof(IOrderedEnumerable<>)) 185equiv = typeof(IOrderedEnumerable<>).MakeGenericType(typeArg);
System\Linq\Queryable.cs (4)
250/// <returns>An <see cref="IOrderedEnumerable{TElement}"/> whose elements are sorted.</returns> 287/// <returns>An <see cref="IOrderedEnumerable{TElement}"/> whose elements are sorted.</returns> 349/// <returns>An <see cref="IOrderedEnumerable{TElement}"/> whose elements are sorted.</returns> 386/// <returns>An <see cref="IOrderedEnumerable{TElement}"/> whose elements are sorted.</returns>
VBCSCompiler.UnitTests (1)
TouchedFileLoggingTests.cs (1)
186var expected = expectedReads.Select(s => s.ToUpperInvariant()).OrderBy(s => s);