I think yes.


On Sun, Jan 26, 2014 at 12:04 AM, Mark Hamstra <notifications@github.com>wrote:

> In core/src/main/scala/org/apache/spark/rdd/RDD.scala:
>
> > @@ -372,6 +372,14 @@ 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 <% Ordered[K]: ClassTag](f: T => K): RDD[T] =
>
> Should sortBy also have the ascending and numPartitions parameters of
> sortByKey (with the same default values)?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/apache/incubator-spark/pull/508/files#r9174818>
> .
>