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

Unified Diff: runtime/lib/array.dart

Issue 11960005: Move sort to collection-dev and remove coreSort. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adapt for not moving IterableMixinWorkaround. Created 7 years, 11 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
« no previous file with comments | « no previous file | runtime/lib/byte_array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/array.dart
diff --git a/runtime/lib/array.dart b/runtime/lib/array.dart
index 165ba64812fe23e8c34f4db3210345b0c9ec585f..d7fac3ad174401f9778185bcc01bd4080fa78db5 100644
--- a/runtime/lib/array.dart
+++ b/runtime/lib/array.dart
@@ -155,8 +155,7 @@ class _ObjectArray<E> implements List<E> {
}
void sort([int compare(E a, E b)]) {
- if (compare == null) compare = Comparable.compare;
- _Sort.sort(this, compare);
+ IterableMixinWorkaround.sortList(this, compare);
}
int indexOf(E element, [int start = 0]) {
« no previous file with comments | « no previous file | runtime/lib/byte_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698