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

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

Issue 237343002: pkg/docgen: sort output files (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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
Index: pkg/docgen/lib/src/model_helpers.dart
diff --git a/pkg/docgen/lib/src/model_helpers.dart b/pkg/docgen/lib/src/model_helpers.dart
index 1c8a25521e50ec98a4a4614148852c19c41116be..678fa19394cd84fbddc2dfeff3954eadee302452 100644
--- a/pkg/docgen/lib/src/model_helpers.dart
+++ b/pkg/docgen/lib/src/model_helpers.dart
@@ -4,6 +4,8 @@
library docgen.model_helpers;
+import 'dart:collection';
+
import '../../../../sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirrors.dart'
as dart2js_mirrors;
import '../../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dart'
@@ -47,7 +49,7 @@ bool isHidden(DeclarationSourceMirror mirror) {
/// Transforms the map by calling toMap on each value in it.
Map recurseMap(Map inputMap) {
- var outputMap = {};
+ var outputMap = new SplayTreeMap();
inputMap.forEach((key, value) {
if (value is Map) {
outputMap[key] = recurseMap(value);

Powered by Google App Engine
This is Rietveld 408576698