Why does my Pandas DataFrame not display new order using `sort_values`?

The below syntax will return a sorted dataframe but it won't update the dataframe itself.

df.sort_values(['column name']) 

So assign the reutrned dataframe to the same dataframe itself as shown below :

df = df.sort_values(['column name'])

df.sort_values(['Total Due']) returns a sorted DF, but it doesn't update DF in place.

So do it explicitly:

df = df.sort_values(['Total Due'])

or

df.sort_values(['Total Due'], inplace=True)