title: How do I arrange or sort dates with R and dplyr
body: <p>I want to sort my dataframe on the dates column.
  My example dataframe:</p>
  
  <pre><code>library(tidyverse)    
  
  dates &lt;- tibble(date = c("01-01-2017", "02-03-2017", "01-02-2017", "02-01-2017", "01-03-2017"), 
                     value = c(8, 12, 4, 14, 11)) 
  </code></pre>
  
  <p>So the following isn't working because it only sorts on the days.</p>
  
  <pre><code>arrange(dates, date)
  </code></pre>