title: Dplyr Arrange Rows of a DF by their frequency in a column
body: <p>I have a DF where I want to rearrange the rows so that the groups are listed in descending order based upon the group column:  </p>
  
  <pre><code>x y group
  3 2 z
  1 1 z
  2 2 z
  3 3 a
  1 2 a
  3 3 a
  1 1 b
  2 2 b
  2 2 b
  1 1 g
  1 1 g
  1 1 g
  1 1 g
  1 1 g
  </code></pre>
  
  <p>The code that I have is the following:</p>
  
  <pre><code>df %&gt;% group_by(group) %&gt;% arrange(desc(group))
  </code></pre>
  
  <p>But this isn't giving me the desired results.</p>