I have a list of employee records. Each tuple of the list represent a person's record, which includes his name, ID, and age.
For example,
emp_records = [('Karim',100, 45), ('Rahim',10, 30),('Salim', 300,60),('Abu',50,35)]
Now, I want to sort emp_records based on ID.