title: reorder ggplot with geom_bar(stat="identity")
body: <p>I have prepare a dataframe and use a ggplot on him. But the initial order is not respected. How i can respect this order ?</p>
  
  <pre><code>Patient Nb_peptides Type_affinite
  1       22         563             a
  2       22        1040             b
  3       22       11139             c
  4       24         489             a
  5       24        1120             b
  6       24       11779             c
  7       13         467             a
  8       13        1239             b
  9       13       14600             c
  
  
  g_plot &lt;- ggplot(data = nb_peptides_type, 
                   aes(x = reorder(Patient, True_order), 
                       y = Nb_peptides, 
                       fill = Type_affinite)) + 
    geom_bar(stat = "identity")
  
  print(g_plot)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/APLaE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/APLaE.png" alt="enter image description here"></a></p>