# Sorting a DataFrame

**URL:** <https://root-forum.cern.ch/t/sorting-a-dataframe/31426>\
**Category:** ROOT\
**Created:** [November 2, 2018, 10:47pm UTC](https://root-forum.cern.ch/t/sorting-a-dataframe/31426 "2018-11-02T22:47:42Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Eddy\_Offermann](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eddy_offermann/32/25079_2.png) [@Eddy\_Offermann](https://root-forum.cern.ch/u/Eddy_Offermann)\
**Post date:** [November 3, 2018, 5:42pm UTC](https://root-forum.cern.ch/t/sorting-a-dataframe/31426/3 "2018-11-03T17:42:57Z")

</div>

Hi Danillo,

For my use case only one sort would be done . Just so that I understand the  
interface. I would like to sort the rows of a RDataFrame by using “sortCol1” as major index and possible “sortCol2” as minor index.

I would prefer option 2 just to separate aching and sorting.

Best Eddy

---

_[View the full topic](https://root-forum.cern.ch/t/sorting-a-dataframe/31426)._
