The ParSeq class does not directly extend SeqLike which provides for the sortBy
. You can see this from the definition of ParSeqLike:
trait ParSeqLike[+T, +Repr <: ParSeq[T], +Sequential <: scala.Seq[T] with SeqLike[T, Sequential]] extends GenSeqLike[T, Repr] with ParIterableLike[T, Repr, Sequential]
which ParSeq extends via
ParSeqLike[T, ParSeq[T], scala.Seq[T]]
Hence, only the Splitter
in the underlying implementation is able to do a sortBy
which does not help you one bit.