94 references to OrderByDescending
Aspire.Dashboard (1)
Model\ResourceEndpointHelpers.cs (1)
39.OrderByDescending(e => e.Url?.StartsWith("https") == true)
dotnet-dev-certs (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
111.OrderByDescending(GetCertificateVersion)
dotnet-svcutil-lib (1)
Shared\MSBuildProj.cs (1)
1025.OrderByDescending(f => f.CreationTimeUtc);
dotnet-svcutil-lib.Tests (1)
TestInit.cs (1)
563FileInfo nugetFile = binDirectory.GetFiles("dotnet-svcutil-lib.*.nupkg", SearchOption.AllDirectories).Where(f => !f.Name.Contains("symbols")).OrderByDescending(f => f.LastWriteTime).FirstOrDefault();
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
111.OrderByDescending(GetCertificateVersion)
Microsoft.AspNetCore.HttpLogging (1)
FileLoggerProcessor.cs (1)
284.OrderByDescending(f => f.Name)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
CompilerFailedExceptionFactoryTest.cs (1)
35var orderedMessages = failure.Messages.OrderByDescending(messages => messages.Message);
Microsoft.AspNetCore.ResponseCompression (1)
ResponseCompressionProvider.cs (1)
146.OrderByDescending(x => x.Quality)
Microsoft.AspNetCore.Routing (1)
DecisionTree\DecisionTreeBuilder.cs (1)
151foreach (var criterion in criteria.OrderByDescending(c => c.Value.Count))
Microsoft.AspNetCore.Server.Kestrel.Core (2)
CertificateLoader.cs (1)
46.OrderByDescending(certificate => certificate.NotAfter))
src\Shared\CertificateGeneration\CertificateManager.cs (1)
111.OrderByDescending(GetCertificateVersion)
Microsoft.Build (1)
Evaluation\Profiler\ProfilerResultPrettyPrinter.cs (1)
53.OrderByDescending(l => l.Value.ExclusiveTime);
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
1855var pathsSortedByDepth = paths.OrderByDescending(x => Path.GetDirectoryName(Path.GetFullPath(x)).Length);
Microsoft.Build.Utilities.Core (3)
ToolLocationHelper.cs (3)
534.OrderByDescending<TargetPlatformSDK, Version>(platform => platform.TargetPlatformVersion) 1390return availablePlatformVersions.OrderByDescending(x => x).FirstOrDefault().ToString(); 1423.OrderByDescending(i => i.Version)
Microsoft.CodeAnalysis (4)
CommandLine\ReportAnalyzerUtil.cs (4)
83.OrderByDescending(kvp => kvp.Sum(entry => entry.Value.Ticks)); 91foreach (var kvp in analyzerGroup.OrderByDescending(kvp => kvp.Value)) 129.OrderByDescending(kvp => kvp.Sum(entry => entry.ElapsedTime.Ticks)); 137foreach (var timingInfo in generatorGroup.OrderByDescending(x => x.ElapsedTime))
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
27.OrderByDescending(f => f).ToList();
Microsoft.CodeAnalysis.CodeStyle.Fixes (6)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (1)
100.OrderByDescending(n => n.SpanStart)
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
75foreach (var diagnostic in diagnostics.OrderByDescending(d => d.Location.SourceSpan.Start))
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
363diagnostics.OrderByDescending(d => d.Location.SourceSpan.Start),
src\Analyzers\Core\CodeFixes\SimplifyBooleanExpression\SimplifyConditionalCodeFixProvider.cs (1)
53diagnostics.OrderByDescending(d => d.Location.SourceSpan.Start).ToImmutableArray(),
src\Analyzers\Core\CodeFixes\SimplifyLinqExpression\SimplifyLinqExpressionCodeFixProvider.cs (1)
42foreach (var diagnostic in diagnostics.OrderByDescending(diagnostics => diagnostics.Location.SourceSpan.Start))
src\Analyzers\Core\CodeFixes\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsCodeFixProvider.cs (1)
59foreach (var diagnostic in diagnostics.OrderByDescending(d => d.Location.SourceSpan.Start))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseIndexOperatorCodeFixProvider.cs (1)
40foreach (var diagnostic in diagnostics.OrderByDescending(d => d.Location.SourceSpan.Start))
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
99foreach (var (localDeclaration, anonymousFunction, references) in nodesFromDiagnostics.OrderByDescending(nodes => nodes.function.SpanStart))
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndMemberAccessCodeFixProvider.cs (1)
43foreach (var diagnostic in diagnostics.OrderByDescending(d => d.Location.SourceSpan.Start))
src\Analyzers\CSharp\CodeFixes\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfCodeFixProvider.cs (1)
56foreach (var typeArgumentList in nameofInvocation.DescendantNodes().OfType<TypeArgumentListSyntax>().OrderByDescending(t => t.SpanStart))
Microsoft.CodeAnalysis.CSharp.Features (5)
src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (1)
82foreach (var badStatement in badStatements.OrderByDescending(s => s.SpanStart))
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseIndexOperatorCodeFixProvider.cs (1)
40foreach (var diagnostic in diagnostics.OrderByDescending(d => d.Location.SourceSpan.Start))
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
99foreach (var (localDeclaration, anonymousFunction, references) in nodesFromDiagnostics.OrderByDescending(nodes => nodes.function.SpanStart))
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndMemberAccessCodeFixProvider.cs (1)
43foreach (var diagnostic in diagnostics.OrderByDescending(d => d.Location.SourceSpan.Start))
src\Analyzers\CSharp\CodeFixes\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfCodeFixProvider.cs (1)
56foreach (var typeArgumentList in nameofInvocation.DescendantNodes().OfType<TypeArgumentListSyntax>().OrderByDescending(t => t.SpanStart))
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\LambdaTests.cs (1)
1126.OrderByDescending(s => s.SpanStart);
Microsoft.CodeAnalysis.EditorFeatures (1)
DocumentationComments\AbstractDocumentationCommentCommandHandler.cs (1)
99var snapshots = textView.Selection.GetSnapshotSpansOnBuffer(subjectBuffer).OrderByDescending(s => s.Span.Start);
Microsoft.CodeAnalysis.Features (7)
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (1)
285.OrderByDescending(reference => reference.Location.SourceSpan.Start);
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (1)
118foreach (var node in actionsToPerform.OrderByDescending(n => n.Item1))
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
75foreach (var diagnostic in diagnostics.OrderByDescending(d => d.Location.SourceSpan.Start))
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
363diagnostics.OrderByDescending(d => d.Location.SourceSpan.Start),
src\Analyzers\Core\CodeFixes\SimplifyBooleanExpression\SimplifyConditionalCodeFixProvider.cs (1)
53diagnostics.OrderByDescending(d => d.Location.SourceSpan.Start).ToImmutableArray(),
src\Analyzers\Core\CodeFixes\SimplifyLinqExpression\SimplifyLinqExpressionCodeFixProvider.cs (1)
42foreach (var diagnostic in diagnostics.OrderByDescending(diagnostics => diagnostics.Location.SourceSpan.Start))
src\Analyzers\Core\CodeFixes\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsCodeFixProvider.cs (1)
59foreach (var diagnostic in diagnostics.OrderByDescending(d => d.Location.SourceSpan.Start))
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (1)
707return [.. actionSets.OrderByDescending(s => s.Priority).ThenBy(s => s, new UnifiedSuggestedActionSetComparer(selectionOpt))];
Microsoft.CodeAnalysis.UnitTests (1)
InvokeUtil.cs (1)
119foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies().OrderByDescending(x => x.FullName))
Microsoft.CodeAnalysis.Workspaces (2)
Log\StatisticResult.cs (1)
37var mode = values.GroupBy(i => i).OrderByDescending(g => g.Count()).First().Key;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
27.OrderByDescending(f => f).ToList();
Microsoft.DotNet.Build.Tasks.Feed (3)
src\model\SetupTargetFeedConfigV3.cs (3)
247foreach (var prefix in FeedOverrides.Keys.OrderByDescending(f => f.Length)) 260foreach (var prefix in FeedSasUris.Keys.OrderByDescending(f => f.Length)) 273foreach (var prefix in FeedKeys.Keys.OrderByDescending(f => f.Length))
Microsoft.DotNet.Build.Tasks.Packaging (1)
NuGetUtility.cs (1)
85.OrderByDescending(v => v)
Microsoft.DotNet.SignTool (1)
src\Configuration.cs (1)
294extension = _fileExtensionSignInfo.OrderByDescending(o => o.Key.Length).FirstOrDefault(f => file.FileName.EndsWith(f.Key, StringComparison.OrdinalIgnoreCase)).Key ?? extension;
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\Usage.cs (1)
62.OrderByDescending(rid => rid.Length)
Microsoft.Extensions.Logging.AzureAppServices (1)
FileLoggerProvider.cs (1)
80.OrderByDescending(f => f.Name)
Microsoft.ML.AutoML (4)
ColumnInference\TextFileContents.cs (1)
110var mostCommon = columnCounts.GroupBy(x => x).OrderByDescending(x => x.Count()).First();
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);
Utils\BestResultUtil.cs (1)
83orderedResults = indexedValues.OrderByDescending(t => metricsAgent.GetScore(t.Item1.ValidationMetrics));
Microsoft.ML.Data (5)
Evaluators\AucAggregator.cs (4)
135using (var posSorted = PosSample.OrderByDescending(x => x).GetEnumerator()) 136using (var negSorted = NegSample.OrderByDescending(x => x).GetEnumerator()) 236using (var posSorted = PosSample.OrderByDescending(x => x.Score).GetEnumerator()) 237using (var negSorted = NegSample.OrderByDescending(x => x.Score).GetEnumerator())
Evaluators\MulticlassClassificationEvaluator.cs (1)
736foreach (var index in Enumerable.Range(0, scoresArr.Length).OrderByDescending(i => scoresArr[i]))
Microsoft.ML.FastTree (2)
FastTree.cs (1)
3152var ordered = gainMap.OrderByDescending(pair => pair.Value);
TreeEnsemble\InternalTreeEnsemble.cs (1)
329var sortedByGain = gainMap.OrderByDescending(pair => pair.Value).AsEnumerable();
Microsoft.ML.GenAI.Core (2)
Extension\ModuleExtension.cs (2)
182foreach (var (key, value) in remainingLayerSizeMap.OrderByDescending(x => x.Value)) 216.OrderByDescending(x => x.Value)
Microsoft.ML.Samples (9)
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportance.cs (1)
52.OrderByDescending(
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportanceLoadFromDisk.cs (1)
51.OrderByDescending(
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportance.cs (1)
55.OrderByDescending(feature => Math.Abs(feature.MicroAccuracy.Mean))
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportanceLoadFromDisk.cs (1)
63.OrderByDescending(feature => Math.Abs(feature.MicroAccuracy.Mean))
Dynamic\Trainers\Ranking\PermutationFeatureImportance.cs (1)
56.OrderByDescending(feature => Math.Abs(
Dynamic\Trainers\Ranking\PermutationFeatureImportanceLoadFromDisk.cs (1)
63.OrderByDescending(feature => Math.Abs(
Dynamic\Trainers\Recommendation\OneClassMatrixFactorizationWithOptions.cs (1)
114.OrderByDescending(element => element.Score).Take(2);
Dynamic\Trainers\Regression\PermutationFeatureImportance.cs (1)
58.OrderByDescending(feature => Math.Abs(
Dynamic\Trainers\Regression\PermutationFeatureImportanceLoadFromDisk.cs (1)
65.OrderByDescending(feature => Math.Abs(
Microsoft.ML.StandardTrainers (3)
Standard\LinearPredictorUtils.cs (1)
212.OrderByDescending(kv => Math.Abs(kv.Value));
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
850var orderedWeights = Weights[classNumber].Items().OrderByDescending(kv => Math.Abs(kv.Value));
Standard\ModelStatistics.cs (1)
467var order = GetUnorderedCoefficientStatistics().OrderByDescending(stat => stat.ZScore).Take(paramCountCap - 1);
Microsoft.ML.Sweeper (1)
Algorithms\SmacSweeper.cs (1)
217IOrderedEnumerable<Tuple<double, ParameterSet>> bestConfigurations = configurations.OrderByDescending(x => x.Item1);
Microsoft.ML.Tests (2)
PermutationFeatureImportanceTests.cs (1)
969var max = metricsDelta.OrderByDescending(m => metricSelector(m)).First();
TrainerEstimators\MatrixFactorizationTests.cs (1)
701var topColumns = results.Where(element => element.MatrixRowIndex == 1).OrderByDescending(element => element.Score).Take(2);
Microsoft.ML.TorchSharp (1)
Utils\MetricUtils.cs (1)
48topK = topK.OrderByDescending(tuple => tuple.score).Take(k).ToList();
Microsoft.NET.StringTools (1)
WeakStringCacheInterner.cs (1)
151.OrderByDescending(kv => kv.Value * kv.Key.Length)
Microsoft.NET.StringTools.net35 (1)
WeakStringCacheInterner.cs (1)
151.OrderByDescending(kv => kv.Value * kv.Key.Length)
Microsoft.VisualStudio.LanguageServices (1)
Preview\PreviewEngine.cs (1)
162var orderedChangedDocuments = changedDocuments.GroupBy(d => d.ProjectId).OrderByDescending(g => g.Count()).Flatten();
System.Data.Common (1)
System\Data\EnumerableRowCollectionExtensions.cs (1)
55IEnumerable<TRow> ie = Enumerable.OrderByDescending(source, keySelector);
Templates.Blazor.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
111.OrderByDescending(GetCertificateVersion)
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
111.OrderByDescending(GetCertificateVersion)
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
111.OrderByDescending(GetCertificateVersion)
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
111.OrderByDescending(GetCertificateVersion)
Templates.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
111.OrderByDescending(GetCertificateVersion)