| Index: sdk/lib/_internal/compiler/implementation/elements/elements.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/elements/elements.dart b/sdk/lib/_internal/compiler/implementation/elements/elements.dart
|
| index 360800b8b5b7a295e72062e9d88d6c592e05630f..ebeb5cd936fe688bc24cb515ff3d1aa28b950ede 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/elements/elements.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/elements/elements.dart
|
| @@ -2040,8 +2040,8 @@ class Elements {
|
| return a.hashCode.compareTo(b.hashCode);
|
| }
|
|
|
| - static List<Element> sortedByPosition(Collection<Element> elements) {
|
| - return new List<Element>.from(elements)..sort(compareByPosition);
|
| + static List<Element> sortedByPosition(Iterable<Element> elements) {
|
| + return elements.toList()..sort(compareByPosition);
|
| }
|
| }
|
|
|
|
|