Sort Spark DataFrame's column by date
<p>I have a DataFrame like that:</p>



<pre class="lang-none prettyprint-override"><code>+---+-------------------+
|C1 |     C2            |
+---+-------------------+
| A |21/12/2015-17-14-12|
| A |21/12/2011-20-12-44|
| B |11/02/2015-15-31-11|
| B |09/04/2015-13-38-05|  
| C |11/06/2013-23-04-35|
+---+-------------------+
</code></pre>

<p>the second column is a timestamp dd/mm/yyyy-hh-mm-ss. I would like to sort each row like that</p>

<pre class="lang-none prettyprint-override"><code>+---+-------------------+
|C1 |     C2            |
+---+-------------------+
| A |21/12/2011-20-12-44|
| C |11/06/2013-23-04-35|
| B |11/02/2015-15-31-11|
| B |09/04/2015-13-38-05|  
| A |21/12/2015-17-14-12|
+---+-------------------+
</code></pre>

<p>Perhaps I have to use an Udf?Do you have any idea?</p>