Hack to fix sort order

TBR=sigmund@google.com

Change-Id: I3771405638f85d2f6d3b3a883d00b88114fc49d3
Reviewed-on: https://dart-review.googlesource.com/54525
Reviewed-by: Stephen Adams <sra@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
diff --git a/pkg/compiler/lib/src/js_model/elements.dart b/pkg/compiler/lib/src/js_model/elements.dart
index 152cede..43e81b6 100644
--- a/pkg/compiler/lib/src/js_model/elements.dart
+++ b/pkg/compiler/lib/src/js_model/elements.dart
@@ -504,9 +504,11 @@
 
 class JGeneratorBody extends JFunction {
   final FunctionEntity function;
+  final int hashCode;
 
   JGeneratorBody(this.function)
-      : super(function.library, function.enclosingClass, function.memberName,
+      : hashCode = function.hashCode + 1, // Hack stabilize sort order.
+        super(function.library, function.enclosingClass, function.memberName,
             function.parameterStructure, function.asyncMarker,
             isStatic: function.isStatic, isExternal: false);