title: Sort a DataFrame by sidetable subtotal
body: <p>Input:
  <a href="https://i.stack.imgur.com/j9H0f.png" rel="nofollow noreferrer">Input DF</a></p>
  <p>I then obtained another df:</p>
  <pre><code>recap_table = df.groupby(['Cofor - Expéditeur',&quot;Libellé de l'écart quantité - Ordre&quot;]).agg(agg_func_count).stb.subtotal()
  </code></pre>
  <p>It looks like this:
  <a href="https://i.stack.imgur.com/G8zxW.png" rel="nofollow noreferrer">Subset Dataframe</a></p>
  <p>i would like to be able to sort this new data frame by the 'subtotal' row. Is there a way to do so?</p>
  <p>I expect an output where the recap dataframe is sorted by the subtotal value.</p>