We start with a DataFrame containing names and ages. We want to sort it by the 'Age' column. Using df.sort_values(by='Age'), pandas sorts the rows in ascending order by age. The original DataFrame 'df' remains unchanged because sort_values returns a new DataFrame. The new sorted DataFrame has rows ordered from youngest to oldest. This process is stepwise: create DataFrame, call sort_values, sort rows, return sorted DataFrame. Remember, to change the original DataFrame, use inplace=True. Sorting is stable, so rows with equal values keep their order.