Github user markhamstra commented on a diff in the pull request:
https://github.com/apache/spark/pull/369#discussion_r13387198
--- Diff: core/src/main/scala/org/apache/spark/rdd/RDD.scala ---
@@ -423,6 +423,18 @@ abstract class RDD[T: ClassTag](
def ++(other: RDD[T]): RDD[T] = this.union(other)
/**
+ * Return this RDD sorted by the given key function.
+ */
+ def sortBy[K](
+ f: (T) â K,
+ ascending: Boolean = true,
+ numPartitions: Int = this.partitions.size)
+ (implicit ord: Ordering[K], ctag: ClassTag[K]): RDD[T] =
--- End diff --
That substitution certainly could be made since it is functionally
equivalent. Whether it should be made is mostly a question of style. Since
`ord` and `ctag` are not used explicitly here, there is no real use to
enumerating them as implicit parameters; but the rest of RDD.scala doesn't use
the context bound sugar, so there is some value in consistently maintaining
that style.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---