I have a dataframe which I need to sort it first and then do some manipulation on it. However after the following snipped code the dataframe (result ) does not change and I shou