title: No implicit Ordering defined for org.apache.spark.sql.types.TimestampType
body: <p>I'm playing around with Spark in Scala and a dataset with a predefined Schema I've developed.</p>
  
  <p>The problem I'm facing is when I try to sortBy the current RDD by a field whose type is TimestampType, as the following message appears in the log.</p>
  
  <pre><code>No implicit Ordering defined for org.apache.spark.sql.types.TimestampType.
  </code></pre>
  
  <p>For the given lines of code.</p>
  
  <pre><code>.sortBy(event =&gt; event
        .getAs("sample.timestamp")
        .asInstanceOf[TimestampType],
        ascending = true,
        1)
  </code></pre>