Aptiv interview question

To sort some table in Python language