Index: samples/swarm/swarm_ui_lib/observable/observable.dart |
diff --git a/samples/swarm/swarm_ui_lib/observable/observable.dart b/samples/swarm/swarm_ui_lib/observable/observable.dart |
index b7663964e1df0a5a2fbfa6ec4ac5b6bb127c8434..62825b11901bd815b4ac37810432bb15e2c13601 100644 |
--- a/samples/swarm/swarm_ui_lib/observable/observable.dart |
+++ b/samples/swarm/swarm_ui_lib/observable/observable.dart |
@@ -158,7 +158,8 @@ class ObservableList<T> |
recordGlobalChange(); |
} |
- void sort([Comparator compare = Comparable.compare]) { |
+ void sort([int compare(var a, var b)]) { |
+ if (compare == null) compare = Comparable.compare; |
_internal.sort(compare); |
recordGlobalChange(); |
} |