| Index: sdk/lib/core/list.dart
|
| diff --git a/sdk/lib/core/list.dart b/sdk/lib/core/list.dart
|
| index 43a98876e04705bd33bc520e26a5f16c45b147ec..030596a8d2c0b77edf9825fb36fe950ad0f429f9 100644
|
| --- a/sdk/lib/core/list.dart
|
| +++ b/sdk/lib/core/list.dart
|
| @@ -72,9 +72,13 @@ abstract class List<E> implements Collection<E>, Sequence<E> {
|
| void addAll(Collection<E> collection);
|
|
|
| /**
|
| - * Sorts the list according to the order specified by the [Comparator].
|
| + * Sorts the list according to the order specified by the [compare] function.
|
| + *
|
| + * The [compare] function must act as a [Comparator].
|
| + * The default [List] implementations use [Comparable.compare] if
|
| + * [compare] is omitted.
|
| */
|
| - void sort([Comparator<E> compare = Comparable.compare]);
|
| + void sort([int compare(E a, E b)]);
|
|
|
| /**
|
| * Returns the first index of [element] in the list.
|
|
|