I want to sort three lists based on one of those three lists. The first list will be sorted in ascending order, while others will change the positions of their corresponding elements based on the new indices of the elements in the first list. i.e. if a[3] becomes a[1], b[3] and c[3] will also become b[1] and c[1], respectively.

E.g.

a=[9,7,3,4,10,7,6,2,8]

b=[29,17,3,14,110,47,86,12,18]

c=[109,732,30,4,110,760,689,210,80]

to

a=[2, 3, 4, 6, 7, 7, 8, 9, 10]

b=[12, 3, 14, 86, 17, 47, 18, 29, 110]

c=[210, 30, 4, 689, 732, 760, 80, 109, 110]

Here, list "a" is sorted in ascending order, whereas lists "b" and "c" have corresponding elements placed as per the new indices of elements in the list "a."