From e26d9e57d402064248ca24a18c341b96549ee38f Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 13 Aug 2014 18:01:58 -0700 Subject: [PATCH] Remove unnecessary sort call in alias declarations that get written --- src/compiler/emitter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 973f7123360..71c44781ce4 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -1884,7 +1884,7 @@ module ts { function writeAsychronousImportDeclarations(importDeclarations: ImportDeclaration[]) { var oldWriter = writer; - forEach(importDeclarations.sort(), aliasToWrite => { + forEach(importDeclarations, aliasToWrite => { var aliasEmitInfo = forEach(aliasDeclarationEmitInfo, declEmitInfo => declEmitInfo.declaration === aliasToWrite ? declEmitInfo : undefined); writer = createTextWriter(writeSymbol); for (var declarationIndent = aliasEmitInfo.indent; declarationIndent; declarationIndent--) {