So if I have one list:
name = [\'Megan\', \'Harriet\', \'Henry\', \'Beth\', \'George\']
And I have another list where each value represents the
You can sort them at the same time as tuples by using zip. The sorting will be by name:
zip
tuples = sorted(zip(name, score_list))
And then
name, score_list = [t[0] for t in tuples], [t[1] for t in tuples]