I have this structure, which I have no control over, and need to do a sort by the clients. The index of the various arrays relate to each other, i.e. client[0] relates to suites[0]. Can this structure be sorted in this way ?
Current structure :
'client' : [ Bravo,Alpha, 1 Delta, 2 Charlie],
'locations' : [ 2,1,3,4 ],
'suites' : [ B,A,C,D ],
'ids' : [ 16,18,25,65 ]
Expected output:
'client' : [ 1 Delta, 2 Charlie, Alpha,Bravo ],
'locations' : [ 3,4,1,2 ],
'suites' : [ C,D,A,B ],
'ids' : [ 25,65,18,16 ]