In Daru, I know that by Daru::DataFrame#sort
we can sort dataframe by its column, but I noticed method does not work if we want to sort dataframe by its index.
Question
- I believe
Daru::DataFrame#sort
is for sorting by column. How can I sort a dataframe by index?