Skip to content

Commit e26d9e5

Browse files
committed
Remove unnecessary sort call in alias declarations that get written
1 parent 94544b3 commit e26d9e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/emitter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1884,7 +1884,7 @@ module ts {
18841884

18851885
function writeAsychronousImportDeclarations(importDeclarations: ImportDeclaration[]) {
18861886
var oldWriter = writer;
1887-
forEach(importDeclarations.sort(), aliasToWrite => {
1887+
forEach(importDeclarations, aliasToWrite => {
18881888
var aliasEmitInfo = forEach(aliasDeclarationEmitInfo, declEmitInfo => declEmitInfo.declaration === aliasToWrite ? declEmitInfo : undefined);
18891889
writer = createTextWriter(writeSymbol);
18901890
for (var declarationIndent = aliasEmitInfo.indent; declarationIndent; declarationIndent--) {

0 commit comments

Comments
 (0)