Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(462)

Unified Diff: pkg/docgen/lib/docgen.dart

Issue 184693004: pkg/docgen: sort items in index.txt (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/docgen/test/generate_json_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/docgen/lib/docgen.dart
diff --git a/pkg/docgen/lib/docgen.dart b/pkg/docgen/lib/docgen.dart
index 2ec9f60b084e05a97b0c2cf4472ca82337181e33..cd7c7973214e8592b4314958b83481f31faa91a5 100644
--- a/pkg/docgen/lib/docgen.dart
+++ b/pkg/docgen/lib/docgen.dart
@@ -444,8 +444,10 @@ class _Generator {
// Outputs all the qualified names documented with their type.
// This will help generate search results.
- _writeToFile(filteredEntities.map((e) =>
- '${e.qualifiedName} ${e.typeName}').join('\n') + '\n',
+ var sortedEntities = filteredEntities.map((e) =>
+ '${e.qualifiedName} ${e.typeName}').toList()..sort();
+
+ _writeToFile(sortedEntities.join('\n') + '\n',
'index.txt', append: append);
var index = new Map.fromIterables(
filteredEntities.map((e) => e.qualifiedName),
« no previous file with comments | « no previous file | pkg/docgen/test/generate_json_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698