Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update rows.scala
Browse files Browse the repository at this point in the history
pzzs committed Mar 10, 2015

Verified

This commit was signed with the committer’s verified signature.
barnabasbusa Barnabas Busa
1 parent cb1852d commit 6278846
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
@@ -200,6 +200,7 @@ class RowOrdering(ordering: Seq[SortOrder]) extends Ordering[Row] {
n.ordering.asInstanceOf[Ordering[Any]].compare(left, right)
case n: NativeType if order.direction == Descending =>
n.ordering.asInstanceOf[Ordering[Any]].reverse.compare(left, right)
case other => sys.error(s"Type $other does not support ordered operations")
}
if (comparison != 0) return comparison
}

0 comments on commit 6278846

Please sign in to comment.