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

Unified Diff: runtime/lib/byte_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 | « runtime/lib/array.dart ('k') | runtime/lib/growable_array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/byte_array.dart
diff --git a/runtime/lib/byte_array.dart b/runtime/lib/byte_array.dart
index 8349eec5ba1bbcb0fa0d502f94974513fbd8f0be..941d818d1065baedd081b6d7a0f976dd9b5fed75 100644
--- a/runtime/lib/byte_array.dart
+++ b/runtime/lib/byte_array.dart
@@ -284,8 +284,7 @@ abstract class _ByteArrayBase {
}
void sort([int compare(var a, var b)]) {
- if (compare == null) compare = Comparable.compare;
- coreSort(this, compare);
+ return IterableMixinWorkaround.sortList(this, compare);
}
int indexOf(element, [int start = 0]) {
@@ -1988,8 +1987,7 @@ class _ByteArrayViewBase extends Collection<int> {
}
void sort([int compare(var a, var b)]) {
- if (compare == null) compare = Comparable.compare;
- coreSort(this, compare);
+ return IterableMixinWorkaround.sortList(this, compare);
}
int indexOf(element, [int start = 0]) {
« no previous file with comments | « runtime/lib/array.dart ('k') | runtime/lib/growable_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698