title: Barchart reorder using ggplot not working properly
body: <p>Here is the dataset:
  <a href="https://www.dropbox.com/s/mrlfnh6e2ww1xwd/home.csv?dl=0" rel="nofollow noreferrer">https://www.dropbox.com/s/mrlfnh6e2ww1xwd/home.csv?dl=0</a></p>
  <p>Here is my code:</p>
  <pre><code>hom &lt;- read.csv(file.choose(),header=TRUE)
  home.melt &lt;- melt(hom, id.vars='home')
  
  ggplot(home.melt, 
  aes(x = reorder(home, value), y = value, 
  fill=forcats::fct_rev(variable))) + 
  geom_bar(stat = &quot;identity&quot;,width = 0.8) + coord_flip() +
  theme_minimal(base_size=10) +
  labs(title=&quot;Home time&quot;,
     subtitle=&quot;By matches&quot;,
     x=&quot;Home&quot;,
     y=&quot;time (minutes)&quot;,
     fill=&quot; &quot;)
  </code></pre>
  <p>Here is the output:</p>
  <p><a href="https://i.stack.imgur.com/DjHGT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DjHGT.png" alt="enter image description here" /></a></p>
  <p>As you can see it's not ordered in descending manner.</p>