mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-15 22:15:05 -05:00
Remove stableSort, rename sort to toSorted (#55728)
This commit is contained in:
@@ -71,7 +71,6 @@ import {
|
||||
ReportEmitErrorSummary,
|
||||
SolutionBuilder,
|
||||
SolutionBuilderHostBase,
|
||||
sort,
|
||||
SourceFile,
|
||||
startsWith,
|
||||
startTracing,
|
||||
@@ -80,6 +79,7 @@ import {
|
||||
sys,
|
||||
System,
|
||||
toPath,
|
||||
toSorted,
|
||||
tracing,
|
||||
validateLocaleAndSetLanguage,
|
||||
version,
|
||||
@@ -170,7 +170,7 @@ function shouldBePretty(sys: System, options: CompilerOptions | BuildOptions) {
|
||||
function getOptionsForHelp(commandLine: ParsedCommandLine) {
|
||||
// Sort our options by their names, (e.g. "--noImplicitAny" comes before "--watch")
|
||||
return !!commandLine.options.all ?
|
||||
sort(optionDeclarations, (a, b) => compareStringsCaseInsensitive(a.name, b.name)) :
|
||||
toSorted(optionDeclarations, (a, b) => compareStringsCaseInsensitive(a.name, b.name)) :
|
||||
filter(optionDeclarations.slice(), v => !!v.showInSimplifiedHelpView);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user